EKS CrashLoopBackOff

Lack of ip addresses

k get po -n kube-system | grep CrashLoopBackOff                                                                                                                           STAGE_DCA22
aws-node-9r5fz                                       0/1     **CrashLoopBackOff**   2202       6d10h
aws-node-s66xj                                       0/1     **CrashLoopBackOff**   2201       6d10h

check logs on the node

tail -n 100 /var/log/aws-routed-eni/ipamd.log | grep error
{"level":"error","ts":"2022-01-26T06:49:39.817Z","caller":"aws-k8s-agent/main.go:27","msg":"Initialization failure: failed to allocate one IP addresses on ENI eni-0e2f7a6366db47864, err: InsufficientFreeAddressesInSubnet: The specified subnet does not have enough free addresses to satisfy the request.\n\tstatus code: 400, request id: bd44184e-f00c-4a4e-9471-271879d49693: InsufficientFreeAddressesInSubnet: The specified subnet does not have enough free addresses to satisfy the request.\n\tstatus code: 400, request id: bd44184e-f00c-4a4e-9471-271879d49693"}

Find ec2 instance ip-10-8-43-29

Go to networkong, scroll down and find eni-id from logs

Check Available IPv4 addresses

Last updated

Was this helpful?