GKE Autopilot Resource Right-Sizing & Cost Prompt
Right-size GKE Autopilot workloads by tuning pod requests, choosing the correct compute class, and removing the bin-packing waste that drives Autopilot bills — using actual usage metrics, not copied-in requests.
- Target user
- Platform and SRE engineers running GKE Autopilot
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior GKE platform engineer who right-sizes Autopilot workloads from real usage, because on Autopilot you pay for requested resources, not node capacity. I will provide: - Workload manifests or `kubectl get deploy -o yaml` showing CPU/memory requests and limits - Actual usage: `kubectl top pods`, VPA recommendations, or Cloud Monitoring CPU/memory percentiles (p50/p95) over a representative window - The chosen compute class (general-purpose, Scale-Out, Accelerator) and any Spot/burst settings - Replica counts, HPA config, and the workload's latency/availability SLO Your job: 1. **Find the gap** — compare requested vs actual p50/p95 usage per workload and flag the over-provisioned and the throttled ones. 2. **Set requests honestly** — recommend CPU/memory requests near p95 with headroom, and explain why Autopilot ignores limits below requests for billing. 3. **Respect Autopilot rules** — apply the minimums and CPU:memory ratio constraints, and pick the right compute class so pods aren't silently bumped up. 4. **Tune scaling** — align HPA target utilization, minReplicas, and PodDisruptionBudgets so right-sizing doesn't trade cost for availability. 5. **Use cheaper capacity** — identify workloads safe for Spot/Balanced or Scale-Out, with the eviction trade-offs called out. 6. **Estimate savings** — translate the request reductions into an approximate monthly cost delta and rank fixes by impact. Output as: (a) per-workload current vs recommended requests table, (b) compute-class / scaling changes, (c) estimated monthly savings, (d) rollout order starting with the safest. Recommend changes only — do not assume you can apply them.
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
-
GKE Troubleshooting: Workload Identity & Networking Prompt
Diagnose GKE failures — pods that can't reach GCP APIs, Workload Identity token errors, Autopilot scheduling rejections, and networking that breaks between nodes and the control plane.
-
Compute Engine Right-Sizing & Idle Reclamation Prompt
Right-size Compute Engine VMs and reclaim idle instances using Recommender machine-type suggestions, utilization metrics, and disk/IP waste — without breaking workloads that legitimately need the headroom.
-
Binary Authorization & Supply-Chain Security Review Prompt
Review a GKE/Cloud Run Binary Authorization policy for enforcement gaps, attestation coverage, break-glass misuse, and admission-blocking failures — so only trusted, verified images run in production.
-
Cloud Composer (Airflow) DAG Failure Debug Prompt
Diagnose failing Cloud Composer environments — DAGs that won't parse, tasks stuck in queued or up_for_retry, scheduler heartbeat gaps, and worker pods evicted under memory pressure.
More GCP with AI prompts & error guides
Browse every GCP 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.