29 lines
612 B
YAML
29 lines
612 B
YAML
{{- 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 }}
|
|
{{- with .mountOptions }}
|
|
mountOptions:
|
|
{{- . | toYaml | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .claimRef }}
|
|
claimRef:
|
|
{{- . | toYaml | nindent 4 }}
|
|
{{- end }}
|
|
---
|
|
{{- end }}
|