2018-10-23 21:22:53 +02:00
|
|
|
{{- if .Values.persistence.enabled -}}
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
2018-11-06 09:26:27 +01:00
|
|
|
name: {{ .Release.Name }}-{{ .Values.opal.persistence.claim }}
|
2018-10-23 21:22:53 +02:00
|
|
|
annotations:
|
|
|
|
{{- if .Values.persistence.retain }}
|
|
|
|
volume.beta.kubernetes.io/storage-class: "nfs-provisioner-retain"
|
|
|
|
{{- else }}
|
|
|
|
volume.beta.kubernetes.io/storage-class: "nfs-provisioner"
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
resources:
|
|
|
|
requests:
|
2018-11-06 06:42:18 +01:00
|
|
|
storage: {{ .Values.opal.persistence.size }}
|
2018-10-23 21:22:53 +02:00
|
|
|
{{- end }}
|