add volumes and volumeMounts in chartutil

add:
- volumes in defaultValues
- volumes in defaultDeployment
- volumeMounts in defaultValues
- volumeMounts in defaultDeployment

Signed-off-by: Eugene Zuev <zhekazuev@gmail.com>
pull/11670/head
Eugene Zuev 2 years ago
parent 5a8e91a010
commit fd44c0fc14
No known key found for this signature in database
GPG Key ID: 626CD63AB135FF49

@ -180,6 +180,19 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Additional volumes on the output Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
# Additional volumeMounts on the output Deployment definition.
volumeMounts: []
# - name: foo
# mounthPath: "/etc/foo"
# readOnly: true
nodeSelector: {}
tolerations: []
@ -324,6 +337,14 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

Loading…
Cancel
Save