updating the helm template to take a list of volume mounts casue im a dev ops

This commit is contained in:
Luke Robles 2022-08-10 10:51:26 -07:00
parent 6855ac4ed5
commit 5798ba6454
2 changed files with 15 additions and 10 deletions

View File

@ -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 }}

View File

@ -71,7 +71,7 @@ tolerations: []
affinity: {}
volumes:
name: dale-pics
- 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