diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 22b11aec..e0fae43c 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -22,10 +22,13 @@ spec: {{- include "dragon-bot.selectorLabels" . | nindent 8 }} spec: volumes: - - name: {{ .Values.volumes.name }} + {{- range .Values.volumes }} + - name: {{ .name }} nfs: - server: {{ .Values.volumes.server }} - path: {{ .Values.volumes.path }} + server: {{ .server }} + path: {{ .path }} + {{- end }} + {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} @@ -52,9 +55,11 @@ spec: key: {{ $value }} {{- end }} volumeMounts: - - name: {{ .Values.volumes.name }} - mountPath: {{ .Values.volumes.mountPath}} + {{- range .Values.volumes }} + - name: {{ .name }} + mountPath: {{ .mountPath}} readOnly: true + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/helm/values.yaml b/helm/values.yaml index f7e7cb6b..dddfd7ee 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -71,11 +71,11 @@ tolerations: [] affinity: {} volumes: - name: dale-pics - type: nfs - server: 192.168.1.119 - path: /volume1/nas/docker_storage/default-syncthing-claim-pvc-7709ff30-4a9b-4d0a-9da7-a38447bc97d9/syncthing-configs/Dropbox-Mirror/Photos/dale - mountPath: /tmp/dale + - name: dale-pics + type: nfs + server: 192.168.1.119 + path: /volume1/nas/docker_storage/default-syncthing-claim-pvc-7709ff30-4a9b-4d0a-9da7-a38447bc97d9/syncthing-configs/Dropbox-Mirror/Photos/dale + mountPath: /tmp/dale env: DRAGON_ENV: prod