Add volumeMounts feature
This commit is contained in:
parent
0d5921af5e
commit
fa14ce6771
6 changed files with 124 additions and 2 deletions
|
@ -62,7 +62,17 @@ spec:
|
|||
{{- end }}
|
||||
- configMapRef:
|
||||
name: {{ include "django.fullname" . }}
|
||||
{{- with .Values.beat.nodeSelector }}
|
||||
{{- if .Values.volumeMounts }}
|
||||
volumeMounts:
|
||||
{{- range .Values.volumeMounts }}
|
||||
- name: {{ .name }}
|
||||
mountPath: {{ .mountPath }}
|
||||
{{- if .subPath }}
|
||||
subPath: {{ .subPath }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.web.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
@ -74,5 +84,19 @@ spec:
|
|||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.volumeMounts }}
|
||||
volumes:
|
||||
{{- range .Values.volumeMounts }}
|
||||
- name: {{ .name }}
|
||||
{{- if .source.configMap }}
|
||||
configMap:
|
||||
name: {{ .source.configMap.name }}
|
||||
{{- end }}
|
||||
{{- if .source.secret }}
|
||||
secret:
|
||||
secretName: {{ .source.secret.secretName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue