All skills
google avatar

/gke-cluster-autoscaler

@becc4b8
by googlegoogle/skills21k stars
1,698

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 not use for ComputeClass-specific YAML generation or priority configuration (defer to gke-compute-classes skill).

Use this Skill: https://skilld.dev/gh/google/skills/gke-cluster-autoscaler

This session only. Nothing lands on disk.

referencesca-provisioning.md

≈457 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Cluster Autoscaler: Provisioning & Strategies

Enabling Scaling (Standard)

cluster autoscaler - Per Pool

  • Enable (New Pool):
    gcloud container node-pools create <POOL> \
      --enable-autoscaling --min-nodes=1 --max-nodes=10
  • Enable (Existing Pool):
    gcloud container clusters update <CLUSTER> \
      --enable-autoscaling --node-pool=<POOL> \
      --min-nodes=1 --max-nodes=10

Node Auto Provisioning - Cluster-wide

  • Enable:
    gcloud container clusters update <CLUSTER> \
      --enable-autoprovisioning \
      --min-cpu=4 --max-cpu=200 \
      --min-memory=16 --max-memory=800

Node pool auto-creation - Per ComputeClass

  • Enable: Set nodePoolAutoCreation.enabled: true in the ComputeClass.
  • GKE 1.33.3+: Works without cluster-wide Node Auto Provisioning enabled.

Provisioning Strategies

Strategy Strengths Use Case
Manual Pools Fast scheduling; Stable names. Latency-sensitive; manual management.
node pool auto-creation (ComputeClass) Best obtainability; Scale-to-zero. Bursty; batch; cost-sensitive.
Hybrid Manual pool at top; node pool auto-creation fallback. Recommended for Production.

Cutover: Node Auto Provisioning to node pool auto-creation

  1. Apply ComputeClasses: Create classes with nodePoolAutoCreation.enabled: true.
  2. Opt Workloads In: Apply nodeSelector: cloud.google.com/compute-class: <name>.
  3. Drain Old Pools: kubectl drain nodes in old Node Auto Provisioning-managed pools.

Scale-to-Zero Behavior

  • Manual Pools: Standard cluster autoscaler keeps ≥1 node unless empty pool deletion is supported/enabled.
  • node pool auto-creation-managed: Autoscaler can delete the entire pool when empty.

Source: SKILL.md on GitHub

No alerts9d3 checks · Risk SAFE
  • Gen Agent Trust Hub9d

    This skill provides guidance and tools for managing the GKE Cluster Autoscaler, including several proactive security measures. It incorporates strict validation for cluster identifiers and defensive instructions to mitigate potential instruction injection from user-pasted logs or manifests. The provided utilities utilize standard cloud management tools for operational troubleshooting.

  • Socket9d

    No alerts

  • Snyk9d

    Risk: LOW · No issues

Signed by skilld at becc4b8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "version": "1.0.0",
  "category": "Containers"
}

README badge

README badge for google/skills/gke-cluster-autoscaler