From 171f0dd77f094cf6340ad9f547ddd199f0548380 Mon Sep 17 00:00:00 2001 From: AmineAbri Date: Wed, 25 Sep 2024 20:05:25 +0100 Subject: [PATCH] fixes --- templates/admin-deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/admin-deployment.yaml b/templates/admin-deployment.yaml index 8b0d97e..2af2876 100644 --- a/templates/admin-deployment.yaml +++ b/templates/admin-deployment.yaml @@ -47,6 +47,11 @@ spec: {{- toYaml .Values.admin.resources | nindent 12 }} ports: - containerPort: 8081 + {{- if .Values.static.enabled }} + volumeMounts: + - name: static-sync + mountPath: "/tmp/static" + {{- end }} envFrom: - configMapRef: name: {{ .Values.name }}-config-admin @@ -64,6 +69,12 @@ spec: value: {{ .value | quote }} {{- end }} {{- end }} + {{- if .Values.static.enabled }} + volumes: + - name: static-sync + persistentVolumeClaim: + claimName: {{ .Values.name }}-syncstatic-data-claim + {{- end }} {{- with .Values.admin.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}