gke-workload-scaling-troubleshooting
Skill by google
Diagnoses GKE HorizontalPodAutoscaler failures, such as metrics showing as <unknown>, FailedGet events and HPAs that will not scale. Built for operators who need the root cause and a proposed fix. It does not author new HPA or VPA objects.
Install gke-workload-scaling-troubleshooting
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/gke-workload-scaling-troubleshooting ~/.claude/skills/gke-workload-scaling-troubleshootingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install gke-workload-scaling-troubleshooting in Claude Code
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/gke-workload-scaling-troubleshooting ~/.gemini/antigravity-cli/skills/gke-workload-scaling-troubleshootingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gke-workload-scaling-troubleshooting in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill diagnoses failures of GKE HorizontalPodAutoscaler (HPA) objects. It covers metrics shown as <unknown>, FailedGet and FailedCompute events, missing Pod resource requests, custom and external metrics pipeline breakage, and HPAs that will not scale up or down. It starts by inspecting the HPA and classifying the symptom from its Metrics, Conditions and Events, then routes to one matching branch of fixes.
The skill runs non-interactively and keeps a read-only diagnostics boundary before proposing manifest or configuration corrections. If the cluster cannot be reached, it lists the kubectl and gcloud commands for an operator to run and still gives a root-cause analysis. Proposed fixes are presented as reviewable GitOps changes. It is aimed at operators whose HPA is not scaling a workload as expected. For configuring HPA or VPA objects, the gke-workload-scaling skill is the better fit.
Written from the project's SKILL.md and checked against it.
What it can do
- Classify HPA symptomsReads Metrics, Conditions and Events from kubectl describe hpa and routes to the matching fix branch.
- Diagnose configuration errorsChecks scaleTargetRef, metric type and target mismatches, and competing HPAs on the same workload.
- Diagnose workload and service errorsFinds missing container resource requests and multiple Services selecting the same workload.
- Diagnose custom and external metricsChecks APIService availability, queries the metrics API directly and inspects the control-plane firewall.
- Diagnose scale to and from zeroCovers HPAs configured with minReplicas set to 0 that will not scale to or from zero.
- Diagnose slow HPA reactionCovers slow recalculation of HPAs on large clusters with many HPA objects.
- Propose GitOps correctionsPresents the proposed manifest or configuration fix as a reviewable GitOps change.
What you need
- gcloud CLI
- kubectl
- Access to the GKE cluster
Try asking
- Why is my HPA showing <unknown> for its custom metric?
- My HPA reports FailedGetResourceMetric. What is causing it?
- Check why this HPA will not scale down and suggest a fix.
Good to know
- Read-only diagnostics boundary before any correction is proposed.
- If the cluster is unreachable, it gives commands for an operator to run instead of running them.
- Does not cover configuring or authoring new HPA or VPA objects.
- Does not cover Cluster Autoscaler or node-pool sizing.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/gke-workload-scaling-troubleshooting/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB -
references/attribution.md2 KB
Alternatives to gke-workload-scaling-troubleshooting
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
gke-workload-scaling-troubleshooting: common questions
What does an HPA metric showing <unknown> mean?
The skill says an <unknown> value means the HPA has not fetched the metric or the metrics pipeline is broken. It routes these cases to the metrics API branch.
Can this skill create a new HPA for my workload?
No. The source says new HPA or VPA objects and scaling best practices belong to the gke-workload-scaling skill.
What if I cannot connect to my GKE cluster?
The skill switches to a dry-run mode. It shows the exact kubectl and gcloud commands for you to run and still outlines the root-cause analysis.
How do I install gke-workload-scaling-troubleshooting?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gke-workload-scaling-troubleshooting free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is gke-workload-scaling-troubleshooting safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gke-workload-scaling-troubleshooting?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
