From 12ac4e9310dc5878b5dee3cf214a0cf9efd66423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20Echterh=C3=B6lter?= Date: Wed, 7 Aug 2024 15:17:42 +0200 Subject: [PATCH] feat: adding nginx mounts --- charts/example-ui/templates/deploy.yaml | 14 ++++++++++- .../tests/__snapshot__/deploy_test.yaml.snap | 24 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/charts/example-ui/templates/deploy.yaml b/charts/example-ui/templates/deploy.yaml index 756f637..fa272a4 100644 --- a/charts/example-ui/templates/deploy.yaml +++ b/charts/example-ui/templates/deploy.yaml @@ -42,4 +42,16 @@ spec: memory: 50Mi ports: - name: http - containerPort: {{ .Values.port }} \ No newline at end of file + containerPort: {{ .Values.port }} + volumeMounts: + - name: tmp-volume + mountPath: /var/cache/nginx + readOnly: false + - name: run-volume + mountPath: /var/run + readOnly: false + volumes: + - name: tmp-volume + emptyDir: {} + - name: run-volume + emptyDir: {} \ No newline at end of file diff --git a/charts/example-ui/tests/__snapshot__/deploy_test.yaml.snap b/charts/example-ui/tests/__snapshot__/deploy_test.yaml.snap index d929e8e..513a241 100644 --- a/charts/example-ui/tests/__snapshot__/deploy_test.yaml.snap +++ b/charts/example-ui/tests/__snapshot__/deploy_test.yaml.snap @@ -40,11 +40,23 @@ matches the snapshot: memory: 50Mi securityContext: readOnlyRootFilesystem: true + volumeMounts: + - mountPath: /var/cache/nginx + name: tmp-volume + readOnly: false + - mountPath: /var/run + name: run-volume + readOnly: false securityContext: fsGroup: 2000 runAsGroup: 3000 runAsUser: 1000 serviceAccountName: RELEASE-NAME + volumes: + - emptyDir: {} + name: tmp-volume + - emptyDir: {} + name: run-volume matches the snapshot with FRONTEND_PORT: 1: | apiVersion: apps/v1 @@ -87,8 +99,20 @@ matches the snapshot with FRONTEND_PORT: memory: 50Mi securityContext: readOnlyRootFilesystem: true + volumeMounts: + - mountPath: /var/cache/nginx + name: tmp-volume + readOnly: false + - mountPath: /var/run + name: run-volume + readOnly: false securityContext: fsGroup: 2000 runAsGroup: 3000 runAsUser: 1000 serviceAccountName: RELEASE-NAME + volumes: + - emptyDir: {} + name: tmp-volume + - emptyDir: {} + name: run-volume