added volumeClaimTemplates
This commit is contained in:
parent
eb8c3dad8d
commit
1ac11c9a92
@ -58,14 +58,11 @@ spec:
|
|||||||
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- with .Values.volumeMounts }}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- range $i, $values := .Values.volumeClaimTemplates }}
|
||||||
{{- end }}
|
- name: {{ $values.name }}
|
||||||
{{- with .Values.volumes }}
|
mountPath: {{ $values.mountPath }}
|
||||||
volumes:
|
{{- end }}
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@ -78,4 +75,16 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
volumeClaimTemplates:
|
||||||
|
{{- range $i, $values := .Values.volumeClaimTemplates }}
|
||||||
|
- metadata:
|
||||||
|
name: {{ $values.name }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- {{ required (printf "accessMode is required for volumeClaimTemplate %v" $values.name) $values.accessMode | quote }}
|
||||||
|
storageClassName: {{ required (printf "storageClassName is required for volumeClaimTemplate %v" $values.name) $values.storageClassName | quote }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ required (printf "size is required for volumeClaimTemplate %v" $values.name) $values.size | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
11
values.yaml
11
values.yaml
@ -120,6 +120,17 @@ volumeMounts: []
|
|||||||
# mountPath: "/etc/foo"
|
# mountPath: "/etc/foo"
|
||||||
# readOnly: true
|
# readOnly: true
|
||||||
|
|
||||||
|
# used for statefulset https://kubernetes.io/docs/concepts/workloads/controllers/statefulset
|
||||||
|
volumeClaimTemplates: []
|
||||||
|
#volumeClaimTemplates:
|
||||||
|
# - name: www
|
||||||
|
# mountPath: /var/www/html
|
||||||
|
# accessModes: "ReadWriteOnce"
|
||||||
|
# storageClassName: "my-storage-class"
|
||||||
|
# size: 1Gi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# Specifies whether a service account should be created
|
# Specifies whether a service account should be created
|
||||||
create: true
|
create: true
|
||||||
|
Loading…
Reference in New Issue
Block a user