Interview Prep/Kubernetes/EKS-specific issues

After enabling prefix delegation (`ENABLE_PREFIX_DELEGATION=true`), nodes still cap at 29 Pods.

IntermediateTroubleshootingEKS-specific issues
Answer

Likely causes → maxPods on the kubelet is still the old ENI-based value. Prefix delegation gives IPs, but the kubelet still advertises the old allocatable pods. Existing nodes also do not change; only new nodes pick it up. Nitro instances only.

Diagnose →

kubectl get nodes -o custom-columns=NAME:.metadata.name,PODS:.status.allocatable.pods,TYPE:.metadata.labels.node\\.kubernetes\\.io/instance-type
kubectl get ds aws-node -n kube-system -o jsonpath='{.spec.template.spec.containers[0].env}' | jq '.[] | select(.name|test("PREFIX"))'

Fix → Set max pods for new nodes (managed node groups compute it when using the EKS AMI with the right settings, Karpenter kubelet.maxPods in the EC2NodeClass/NodePool, or max-pods-calculator.sh --cni-prefix-delegation-enabled), then roll the nodes.

Prevent → Treat CNI mode and maxPods as one change; roll node groups after CNI config changes.

All Kubernetes questions

More on EKS-specific issues