Problem:
I upgraded from AWS EKS cluster to v1.23 from v1.22 and all of a sudden, all the pods that had Persistent Volume Claim (PVC) and Persistent Volume (PV) started failing with the errors like FailedAttachVolume AttachVolume.Attach failed
and FailedMount MountVolume.WaitForAttach failed
for the AWS EBS volumes.
Pods were giving the following error: Unable to attach or mount volumes timed out waiting for the condition
Solutions Tried:
- I tried adding AWS EBS CSI Driver add-on in the AWS EKS cluster but still it didn't work.
- I tried removing the annotation for migration to this new provisioner on PVCs but that didn't work either.
- I also tried adding storage class for
gp3
AWS EBS volume type with AWS EBS CSI Driver as the new provisioner as I was usinggp2
but that didn't work either.
Note: AWS EBS volumes were of type gp2
.