- Newest
- Most votes
- Most comments
The issue you're experiencing with your EKS AutoMode static PV not attaching properly is likely due to a conflict in the volume attachment process. Here are some steps to troubleshoot and resolve the issue:
-
First, ensure that the EBS volume is not attached to any other EC2 instance. If it is, detach it manually from the AWS console or using AWS CLI.
-
Double-check that the EBS volume has the correct tag. It should have a tag with the key 'eks:eks-cluster-name' and the value set to your cluster name.
-
Verify that your PV definition is using the correct CSI driver. The 'Driver' field in your PV definition looks correct (ebs.csi.eks.amazonaws.com), which is the appropriate driver for EKS AutoMode.
-
If the issue persists, try deleting the PV and PVC, then recreate them. This can help resolve any lingering attachment issues.
-
Ensure that the EBS volume is in the same Availability Zone as the node where the pod is scheduled. EBS volumes can only be attached to EC2 instances in the same AZ.
-
Check the EKS control plane logs for any errors related to volume attachment. You may need to enable control plane logging if it's not already enabled.
-
Verify that the IAM roles associated with your EKS nodes have the necessary permissions to attach EBS volumes.
If these steps don't resolve the issue, you may need to force the deletion of any stuck volume attachments using the AWS API or CLI. However, be cautious with this approach as it can potentially lead to data loss if not done correctly.
Remember, when migrating from manually bound EBS volumes to EKS AutoMode, you need to ensure that all the configurations are updated to work with the new provisioner and that there are no conflicts with existing attachments or outdated configurations.
Sources
EKS AutoMode node can't bind to static PV - does not contain driver ebs.csi.aws.com | AWS re:Post
Amazon EBS CSI Driver add-on compatibility with EKS compute resource Auto Mode configuration | AWS re:Post
turns out i miss understanding the tag name the key should be eks:eks-cluster-name instead of eks:our-custom-eks-name
Relevant content
- asked 10 months ago
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 5 months ago
