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.
More on EKS-specific issues
A new engineer gets `error: You must be logged in to the server (Unauthorized)` on EKS even though their IAM role is in `aws-auth`.IntermediateAfter someone edited `aws-auth`, all nodes went `NotReady` and nobody except the cluster creator can use kubectl.AdvancedA managed node group fails with `NodeCreationFailure: Instances failed to join the kubernetes cluster`.IntermediatePods are stuck in ContainerCreating and the aws-node logs show `InsufficientFreeAddressesInSubnet` / `failed to assign an IP address to container`.AdvancedAfter enabling prefix delegation (`ENABLE_PREFIX_DELEGATION=true`), nodes still cap at 29 Pods.IntermediatePods on EKS fail to pull from ECR with `failed to resolve reference ... 401 Unauthorized` or `no basic auth credentials`.Intermediate