2020-10-09 14:30:25 +00:00
|
|
|
{{- range .Values.PersistentVolumes }}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
|
|
|
name: {{ default "kubezero-efs-pv" .name }}
|
|
|
|
labels:
|
|
|
|
{{ include "kubezero-lib.labels" $ | indent 4 }}
|
|
|
|
spec:
|
|
|
|
capacity:
|
|
|
|
storage: 5Gi
|
|
|
|
volumeMode: Filesystem
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
persistentVolumeReclaimPolicy: Retain
|
|
|
|
storageClassName: efs-sc
|
|
|
|
csi:
|
|
|
|
driver: efs.csi.aws.com
|
|
|
|
volumeHandle: {{ .volumeHandle }}
|
2021-04-08 14:19:51 +00:00
|
|
|
{{- with .volumeAttributes }}
|
|
|
|
volumeAttributes:
|
|
|
|
{{- . | toYaml | nindent 6 }}
|
|
|
|
{{- end }}
|
2020-10-09 14:30:25 +00:00
|
|
|
{{- with .claimRef }}
|
|
|
|
claimRef:
|
|
|
|
{{- . | toYaml | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
{{- end }}
|