Karpenter 1.0.6 - failed to assign an IP address to container #7318
Open
Description
Description
Observed Behavior:
Any pods are stuck in "ContainerCreating" status with below error:
Warning FailedCreatePodSandBox 2m47s (x1642 over 6h) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "71ef22cdaf65163adca4c97ed66df6a7cdcdcbe7c011d0ff62a77648cba5b46b": plugin type="aws-cni" name="aws-cni" failed (add): add cmd: failed to assign an IP address to container
Expected Behavior:
Karpenter should detects that max allowed IP is reached on the node and provision a new one.
Reproduction Steps:
Versions:
- Chart Version: 1.0.6
- Kubernetes Version (
kubectl version
): EKS 1.28 - VPC CNI addon: v1.18.1-eksbuild.3
Other informations:
- Behaviour happened after upgrading from 0.31 to 1.0.6. This issue never happened before
- I'm facing issue on large instance. Currently the node is a x2iedn.4xlarge.
- I've validated that the max allowed IP is well reached on the host (x2iedn.4xlarge = 8x CNI max + 30 IPs per CNIs = 240 IPs max)
Currently, 8 private IPs address + 232 secondary IP address assigned (so max IP reached)