I'm really frustrated right now trying to set up my EKS cluster using Terraform. The node group takes over 30 minutes to create, and then it just fails. When I check in the AWS console, I see errors with the nodes. I'm using k9s to connect to the cluster, but there aren't any pods created. The node description indicates that the Kubelet isn't ready, specifically citing that the container runtime network isn't ready because the CNI plugin hasn't been initialized. I've attached my latest Terraform configuration here: [GitHub - eks-test](https://github.com/sPrime28/eks-test).
I'm also not seeing any addons in the cluster. Running the command to list addons returns an empty array. What could I be missing?
4 Answers
Is there anything unclear in the documentation? You should ideally define addons within the module, as defining them outside can lead to challenges with configurations like the VPC CNI and EKS Pod Identity. Let me know if you need help with that!
It looks like you haven't specified any EKS-managed addons in your Terraform configuration, which means none will be installed. Without a CNI addon, your network setup won't work, and that will cause your nodes to stay unhealthy, resulting in timeouts for the node group creation. Make sure to check the documentation on the EKS module for the input variables that define addons. Previously, the VPC CNI addon was installed by default, but you now need to explicitly configure it yourself.
Check the AWS console for the EKS service to see if any addons are showing errors or helpful logs. Sometimes it can provide insights into what might be going wrong.
If you reapply your Terraform configuration, are the addons installed then? Also, consider looking into pod identity versus IRSA since that could be a factor.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically