An EKS cluster upgrade to the next minor version is blocked, or workloads break right after it.
AdvancedTroubleshootingECS, EKS, ECR and Lambda
Answer
Likely causes → Manifests or Helm charts still use removed APIs. Add-ons (VPC CNI, CoreDNS, kube-proxy, EBS CSI) are at versions that do not support the new Kubernetes version. Or nodes are more than the allowed skew behind the control plane.
Diagnose →
aws eks list-insights --cluster-name prod --filter kubernetesVersions=1.33
aws eks describe-insight --cluster-name prod --id <insight-id>
aws eks describe-addon-versions --addon-name vpc-cni --kubernetes-version 1.33 \
--query 'addons[].addonVersions[].addonVersion' --output text | head
kubectl get --raw /metrics | grep apiserver_requested_deprecated_apis
Fix →
- Migrate manifests (
kubectl-convert,pluto detect-helm) - Upgrade the add-ons to compatible versions before the control plane, then upgrade the control plane, then the nodes
- Update PDBs so node drains can finish
Prevent → Upgrade one minor version at a time, every quarter, rehearsed on a staging cluster. Track EKS upgrade insights in CI.
More on ECS, EKS, ECR and Lambda
`docker push 111111111111.dkr.ecr.us-east-1.amazonaws.com/api:1.4` fails with `no basic auth credentials` (or `denied: Your authorization token has expired. Reauthenticate and try again.`).BeginnerFargate tasks stop with `CannotPullContainerError: pull image manifest has been retried 5 time(s): failed to resolve ref ... dial tcp 52.x.x.x:443: i/o timeout`.Intermediate`ResourceInitializationError: unable to pull secrets or registry auth: ... AccessDeniedException: User: arn:aws:sts::111111111111:assumed-role/ecsTaskExecutionRole/... is not authorized to perform: secretsmanager:GetSecretValue`.IntermediateA task stops with `Essential container in task exited`, exit code 137, and reason `OutOfMemoryError: Container killed due to memory usage`.BeginnerThe ECS service event says `service api was unable to place a task because no container instance met all of its requirements. The closest matching container-instance ... has insufficient memory available.`IntermediateAn ECS deployment rolls back automatically, and the event says `deployment failed: tasks failed to start` from the circuit breaker.Advanced