Interview Prep/Kubernetes/EKS-specific issues

On a new EKS cluster with only Fargate profiles, CoreDNS Pods are Pending forever.

IntermediateTroubleshootingEKS-specific issues
Answer

Likely causes → No Fargate profile selects the kube-system namespace, or the CoreDNS Deployment has the eks.amazonaws.com/compute-type: ec2 annotation from the default install, so it waits for EC2 nodes that do not exist.

Diagnose →

aws eks list-fargate-profiles --cluster-name prod
kubectl get deploy coredns -n kube-system -o jsonpath='{.spec.template.metadata.annotations}'
kubectl describe pod -n kube-system -l k8s-app=kube-dns | grep -A3 Events

Fix → Create a Fargate profile for kube-system (selector k8s-app=kube-dns), configure the CoreDNS add-on with computeType: Fargate (or remove the annotation), then restart CoreDNS.

Prevent → Use the EKS add-on configuration for CoreDNS in IaC when building Fargate-only clusters.

All Kubernetes questions

More on EKS-specific issues