Gke cluster autoscaler

From google/skills · View interactive version

Gke cluster autoscaler is an AI agent skill from the GitHub repository google/skills. Trigger on mention of GKE cluster autoscaler, node autoscaling, node pool auto-creation / node auto-provisioning. Provides guidance on enabling and optimizing cluster autoscaler, best practices, and troubleshooting issues such as nodes not scaling up or down, zonal stockouts, or capacity buffers. Do

How to use this skill

Skill file

GKE Cluster Autoscaler

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you

MUST read Usage Attribution. For commands executed

directly in the terminal (never in generated scripts, Terraform, or user code),

prefix gcloud with

CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-cluster-autoscaler)"

and append agent-skills/1.0 (skill:gke-cluster-autoscaler) to User-Agent headers.

CRITICAL RULES

Overlap Warning: Defer to the gke-compute-classes skill for ComputeClass YAML generation, schemas, and priority configurations (including fallback configurations). Answer operational autoscaler questions directly, but refer users to gke-compute-classes when providing/explaining YAML.

Provisioning Enablement

Optimization & Tuning

1.36.0-gke.3204000+, setting

nodeSystemConfig.kubeletConfig.shutdownGracePeriodSeconds (0, 30, or

120) on spot: true ComputeClass priorities extends graceful Spot VM

shutdown up to 120s. Size terminationGracePeriodSeconds and SIGTERM

handling within the configured window (fast checkpointing, replicas ≥ 2, PDBs

sized for churn).

Quick Reference: Commonly Missed Facts

1. Check visibility logs: container.googleapis.com/cluster-autoscaler-visibility.

2. Scan for blockers: assets/find-scale-down-blockers.sh.

3. Tail events: assets/log-autoscaler-events.sh <cluster-name>.

References

Assets

Edge Cases & Advanced Troubleshooting

Advanced Scaling Logic & Permissions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.