- Newest
- Most votes
- Most comments
The issue you're experiencing is related to the migration of your persistent volumes (PVs) to EKS Auto Mode. There are a few key points to consider:
-
EKS Auto Mode uses a different provisioner for EBS volumes. The correct provisioner is 'ebs.csi.eks.amazonaws.com', which you've correctly set in your StorageClass.
-
For static provisioning with existing EBS volumes in EKS Auto Mode, you need to add the AWS tag 'eks:eks-cluster-name' with the value of your cluster name to the volume. You've mentioned doing this, which is correct.
-
The error message suggests that the node is still looking for the old EBS CSI driver ('ebs.csi.aws.com'). This indicates that the migration process might not be complete or there's a configuration issue.
-
In your PV definition, you're still using the 'awsElasticBlockStore' volume type. For EKS Auto Mode, you should use the CSI volume type instead.
To resolve this issue:
- Update your PV definition to use the CSI volume type. Replace the 'awsElasticBlockStore' section with:
csi: driver: ebs.csi.eks.amazonaws.com volumeHandle: vol-05a44cf51e421b306 fsType: ext4
-
Ensure that all nodes in your cluster are updated to support EKS Auto Mode and the new EBS CSI driver.
-
Verify that the EBS CSI driver add-on is not installed on your cluster, as it's not needed for EKS Auto Mode.
-
Double-check that the AWS tag on your EBS volume is correct and matches your cluster name exactly.
-
If the issue persists, you may need to delete and recreate the PV and PVC to ensure they're properly configured for EKS Auto Mode.
Remember that when transitioning to EKS Auto Mode, you need to plan for migrating your volumes carefully. This process may involve creating volume snapshots, updating volume tags, and modifying your PV and PVC definitions to work with the new provisioner.
Sources
Amazon EBS CSI Driver add-on compatibility with EKS compute resource Auto Mode configuration | AWS re:Post
Store Kubernetes volumes with Amazon EBS - Amazon EKS
Create a storage class - Amazon EKS
Relevant content
asked a year ago
asked 2 years ago

I've followed above action step by step, I could see the PVC bound to PV but on the pod it still shown that
AttachVolume.Attach failed for volume "jenkins-pv" : volume attachment is being deletedPV
PVC