updating the helm template to take a list of volume mounts casue im a dev ops
This commit is contained in:
parent
65b80c706b
commit
dffcb02d07
@ -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 }}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user