- Newest
- Most votes
- Most comments
It appears that your MySQL pod is unable to obtain a Persistent Volume (PV) for storage, which is causing it to remain in a pending state. This issue is likely related to the EFS (Elastic File System) storage class configuration in your EKS cluster.
To resolve this, you should check the following:
-
Ensure that the EFS CSI (Container Storage Interface) driver is properly installed and configured in your EKS cluster. This driver is necessary for your cluster to interact with EFS volumes.
-
Verify that you have created an EFS file system and that it's accessible from your EKS cluster's VPC.
-
Check your StorageClass definition. Make sure you have a StorageClass named "efs-sc" that is correctly configured to use the EFS CSI driver.
-
Examine your PersistentVolumeClaim (PVC) configuration. Ensure it's requesting storage from the "efs-sc" StorageClass and that the access modes are compatible with EFS (ReadWriteMany is typically used for EFS).
-
Look at the events and logs related to your PVC and the CSI driver for any error messages that might provide more details about the provisioning failure.
-
If you're using Fargate, be aware that there are some limitations when it comes to using EFS with EKS on Fargate. Ensure your setup is compatible with Fargate if you're using it.
If after checking these points you're still encountering issues, you may need to manually create a PersistentVolume that references your EFS file system, and then bind your PVC to this PV.
Remember, when using EFS with EKS, it's crucial to have the proper IAM roles and security group settings to allow your nodes to access the EFS file system.
Sources
Failing to mount EFS volume on EKS Fargate | AWS re:Post
Trident dynamic provisioning and FSx... | AWS re:Post
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
