updating the helm template to take a list of volume mounts casue im a dev ops
This commit is contained in:
parent
6855ac4ed5
commit
5798ba6454
@ -22,10 +22,13 @@ spec:
|
|||||||
{{- include "dragon-bot.selectorLabels" . | nindent 8 }}
|
{{- include "dragon-bot.selectorLabels" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ .Values.volumes.name }}
|
{{- range .Values.volumes }}
|
||||||
|
- name: {{ .name }}
|
||||||
nfs:
|
nfs:
|
||||||
server: {{ .Values.volumes.server }}
|
server: {{ .server }}
|
||||||
path: {{ .Values.volumes.path }}
|
path: {{ .path }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@ -52,9 +55,11 @@ spec:
|
|||||||
key: {{ $value }}
|
key: {{ $value }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ .Values.volumes.name }}
|
{{- range .Values.volumes }}
|
||||||
mountPath: {{ .Values.volumes.mountPath}}
|
- name: {{ .name }}
|
||||||
|
mountPath: {{ .mountPath}}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
|
@ -71,7 +71,7 @@ tolerations: []
|
|||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
name: dale-pics
|
- name: dale-pics
|
||||||
type: nfs
|
type: nfs
|
||||||
server: 192.168.1.119
|
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
|
path: /volume1/nas/docker_storage/default-syncthing-claim-pvc-7709ff30-4a9b-4d0a-9da7-a38447bc97d9/syncthing-configs/Dropbox-Mirror/Photos/dale
|
||||||
|
Loading…
x
Reference in New Issue
Block a user