Need Help Fixing EKS Node Group Issues with Network Plugin

0
3
Asked By TechieExplorer93 On

I'm having a rough time getting my EKS managed node group to work properly. I'm getting this error: "container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady, message:Network plugin returns error: cni plugin not initialized." I'm using the Terraform AWS modules for EKS, specifically version 21.15.1, with Kubernetes 1.31. My setup includes several addons like vpc-cni, aws-ebs-csi-driver, and others, alongside a managed node group for Karpenter.

The trouble seems to start during the `terraform apply` process. The logs show the EBS IAM role is being created simultaneously with the node group, but the addons haven't been installed yet. This leads to the nodes failing because the CNI isn't ready. I've tried some suggestions, like setting `before_compute = true` on my addons to ensure proper order, but they don't seem to be effective. Last time I used version 20.24, everything worked fine!

1 Answer

Answered By DevOpsGuru77 On

Try separating your EBS addon from the `before_compute` setting. Only the CNI really needs to be ready before the nodes launch. This might help Terraform to handle the deployment in the right order.

TechieExplorer93 -

I will check that out tomorrow, thanks!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.