Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a dedicated EBS CSI storage class #53

Open
christian-roggia opened this issue Jan 15, 2024 · 4 comments
Open

Create a dedicated EBS CSI storage class #53

christian-roggia opened this issue Jan 15, 2024 · 4 comments

Comments

@christian-roggia
Copy link
Contributor

A new storage class is required in the cluster with provisioner: ebs.csi.aws.com in order to take advantage of the EBS CSI driver. See this documentation link for more information.

We should also consider migrating the default storage class to the EBS CSI with gp3 volume type. We should also verify how to migrate existing volumes to the new storage class and driver.

This is what we currently have online in the cluster (currently in use by all persistent volumes in the cluster):

➜  ~ kubectl get storageclasses.storage.k8s.io
NAME            PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
gp2 (default)   kubernetes.io/aws-ebs   Delete          WaitForFirstConsumer   true                   202d
# kubectl get storageclasses.storage.k8s.io gp2 -o yaml
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
  name: gp2
parameters:
  fsType: ext4
  type: gp2
provisioner: kubernetes.io/aws-ebs
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
@clezag
Copy link
Member

clezag commented Jan 15, 2024

@christian-roggia regarding gp2/gp3 we're still in the process of deciding whether we will go with Consip or not.

Consip sadly only has gp2 volumes available, so I would hold work on this until we know for sure.

@christian-roggia
Copy link
Contributor Author

I think we still need to switch to the EBS CSI provisioner even if the volume type is downgraded to gp2.

@clezag
Copy link
Member

clezag commented Jan 15, 2024

Is this for the cross-AZ stuff?
Anyway, my comment was solely about the gp2/gp3 issue, if you think we have to switch and it's doable with gp2 volumes, go ahead.

@christian-roggia
Copy link
Contributor Author

christian-roggia commented Jan 15, 2024

EBS CSI is the way forward for persistent volume management, Kubernetes will be removing the vendor-specific implementation (currently used by the default storage class) from its codebase in future releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants