Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nivleshc/355e547074be24c4c7d9ebd1a2ece679 to your computer and use it in GitHub Desktop.
Save nivleshc/355e547074be24c4c7d9ebd1a2ece679 to your computer and use it in GitHub Desktop.
This gist contains code from the helm/s3-csi-demo/templates/pv.yaml file which is part of the blog-amazon-s3-filesystem-for-amazon-eks-cluster repository.
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ .Values.persistentVolume.name }}
spec:
capacity:
storage: {{ .Values.persistentVolume.capacity.storageSize }}
volumeMode: {{ .Values.persistentVolume.volumeMode }}
accessModes:
- {{ .Values.persistentVolume.accessModes }}
storageClassName: {{ .Values.persistentVolume.storageClassName }}
mountOptions:
{{- range .Values.persistentVolume.mountOptions }}
- {{ . }}
{{- end }}
persistentVolumeReclaimPolicy: {{ .Values.persistentVolume.persistentVolumeReclaimPolicy }}
csi:
driver: {{ .Values.persistentVolume.csi.driver }}
volumeHandle: {{ .Values.persistentVolume.csi.volumeHandle }}
volumeAttributes:
bucketName: {{ .Values.persistentVolume.csi.bucketName }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment