Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nivleshc/a8134cb0c978287243dcd628da1abe94 to your computer and use it in GitHub Desktop.
Save nivleshc/a8134cb0c978287243dcd628da1abe94 to your computer and use it in GitHub Desktop.
This gist contains code from the helm/s3-csi-demo/values.yaml file which is part of the blog-amazon-s3-filesystem-for-amazon-eks-cluster repository.
storageClass:
name: s3-storageclass
provisioner: s3.csi.aws.com # Provisioner for AWS S3
parameters:
type: standard
persistentVolume:
name: s3-pv
capacity:
storageSize: 5Gi
volumeMode: Filesystem
accessModes: ReadWriteMany # supported options: ReadWriteMany / ReadOnlyMany
storageClassName: s3-storageclass
mountOptions:
- allow-delete
- region ap-southeast-2
- prefix s3-csi/ # prefix inside the Amazon S3 bucket whose contents will be exposed by the S3 CSI driver
persistentVolumeReclaimPolicy: Retain
csi:
driver: s3.csi.aws.com # required
volumeHandle: mys3bucket-volume # handle to reference the volume with
bucketName: mys3bucket # the bucket name whose contents will be exposed by the S3 CSI driver
persistentVolumeClaim:
name: s3-pvc
accessModes: ReadWriteMany # supported options: ReadWriteMany / ReadOnlyMany
storageClassName: s3-storageclass # required for static provisioning
resources:
requests:
storage: 5Gi
volumeName: s3-pv
nginx:
name: nginx
labels:
app: nginx
spec:
containers:
name: nginx
image: nginx:1.27.0-perl
ports:
containerPort: 80
protocol: TCP
volumeMount:
name: s3-volume
mountPath: /s3
volumes:
name: s3-volume
persistentVolumeClaim:
claimName: s3-pvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment