2021-12-08 16:14:38 +00:00
|
|
|
{{- if index .Values "aws-efs-csi-driver" "enabled" }}
|
|
|
|
{{- range ( index .Values "aws-efs-csi-driver" "PersistentVolumes" ) }}
|
2020-10-09 14:30:25 +00:00
|
|
|
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 }}
|
2021-12-08 16:14:38 +00:00
|
|
|
{{- end }}
|