persistentvolume.yaml 678 B

12345678910111213141516171819202122232425
  1. {{ if .Values.nfs.mountOptions -}}
  2. apiVersion: v1
  3. kind: PersistentVolume
  4. metadata:
  5. name: pv-{{ template "nfs-client-provisioner.fullname" . }}
  6. labels:
  7. nfs-client-provisioner: {{ template "nfs-client-provisioner.fullname" . }}
  8. spec:
  9. capacity:
  10. storage: 10Mi
  11. volumeMode: Filesystem
  12. accessModes:
  13. - {{ .Values.storageClass.accessModes }}
  14. persistentVolumeReclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
  15. storageClassName: ""
  16. {{- if .Values.nfs.mountOptions }}
  17. mountOptions:
  18. {{- range .Values.nfs.mountOptions }}
  19. - {{ . }}
  20. {{- end }}
  21. {{- end }}
  22. nfs:
  23. server: {{ .Values.nfs.server }}
  24. path: {{ .Values.nfs.path }}
  25. {{ end -}}