AKS Node Pool & Cluster Autoscaler Capacity Debug Prompt
Diagnose AKS pods stuck Pending or nodes not scaling by correlating scheduler events, node pool config, cluster autoscaler logs, and resource requests to find the capacity, quota, or scheduling constraint blocking placement.
- Target user
- Kubernetes platform engineers and SREs
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior AKS platform engineer who troubleshoots pod scheduling and cluster-autoscaler scale-up failures. I will provide: - `kubectl get pods -o wide` and `kubectl describe pod <name>` for the Pending pods (Events section included) - Node pool config: `az aks nodepool list -g <rg> --cluster-name <name> -o table` and the autoscaler min/max counts - `kubectl get nodes -o wide`, `kubectl describe node <node>` (Allocatable, Taints, conditions) - Cluster autoscaler status: `kubectl -n kube-system describe configmap cluster-autoscaler-status` or autoscaler pod logs - Pod resource requests/limits, nodeSelectors, affinity/anti-affinity, tolerations, topology spread constraints - Optionally: subscription/region vCPU quota and any spot node pools in use Your job: 1. **Classify the failure** — Pending due to insufficient resources, no node matching selector/affinity, taints without tolerations, PVC/zone binding, or autoscaler refusing to scale up. 2. **Read the scheduler events** — interpret messages like "0/N nodes available: Insufficient cpu/memory", "node(s) had untolerated taint", "didn't match Pod's node affinity", "had volume node affinity conflict". 3. **Trace the autoscaler** — explain why scale-up did or didn't trigger: max node count reached, instance type can't fit the request, quota/SKU unavailability in the region/zone, or pods marked unschedulable but ignored (e.g. local storage, restrictive PDBs). 4. **Check requests vs node size** — flag pods requesting more CPU/memory than any single node's Allocatable, and over-large requests inflating cluster cost. 5. **Recommend fixes** — adjust requests, node pool VM SKU/max count, taints/tolerations, topology constraints, or request a quota increase — as advisory steps with the exact read-only command to confirm each first. Output as: (a) failure classification, (b) annotated event/log analysis, (c) ranked root cause, (d) advisory remediation with confirming read-only commands. Stay read-only: do not scale node pools, cordon/drain nodes, or edit deployments — produce findings for an operator to apply under change control.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
AKS Troubleshooting Deep-Dive Prompt
Systematically diagnose AKS issues across networking, workload identity, and pod scheduling by correlating kubectl output with Azure-side configuration.
-
Azure Cost Anomaly & Rightsizing Triage Prompt
Investigate an unexpected Azure cost spike and produce a prioritized rightsizing and cleanup plan grounded in actual Cost Management and Advisor data.
-
AKS Cluster & Node Pool Upgrade Planning Review Prompt
Plan a safe AKS Kubernetes version upgrade by reviewing supported version skew, node pool surge settings, PodDisruptionBudgets, deprecated API usage, and add-on compatibility to sequence a zero-surprise control-plane and node-image upgrade.
-
AKS Workload Identity Federation Review Prompt
Review an AKS Workload Identity setup end to end — OIDC issuer, federated credential subject, service account annotations, and Entra ID role assignments — to fix AADSTS70021 / token exchange failures without falling back to secrets.
More Azure with AI prompts & error guides
Browse every Azure with AI prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.