After you’ve installed the AWS CSI Driver into your cluster, you must create a storage class to use the driver.
Create a file called ebs-sc.yaml and paste in the following contents.
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
meta.helm.sh/release-name: aws-ebs-csi-driver
meta.helm.sh/release-namespace: kube-system
storageclass.kubernetes.io/is-default-class: "true"
name: ebs-sc
parameters:
encrypted: "true"
provisioner: ebs.csi.aws.com
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
Apply with the following
kubectl apply -f ebs-sc.yaml