Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gke-cost-optimization

Skill by google

Optimizes GKE costs by rightsizing workloads and configuring Spot VMs, committed use discounts, cost allocation, and resource quotas. Built for people who run Google Kubernetes Engine clusters and want to reduce spend.

  • Score 92
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gke-cost-optimization

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-cost-optimization ~/.claude/skills/gke-cost-optimization

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gke-cost-optimization in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The gke-cost-optimization skill is a reference for reducing Google Kubernetes Engine (GKE) costs while keeping a secure and reliable posture. It covers resource quotas, pod rightsizing with VPA and MPA, Spot VM selection through nodeSelector, machine type selection, and committed use discounts. It also covers cluster management steps such as scaling idle dev node pools to zero.

It points to other skills for related work. The gke-cost-analysis skill handles cost allocation and billing queries, gke-compute-classes handles ComputeClass YAML and GPU selection, and gke-cluster-autoscaler handles standby capacity buffers. It is intended for anyone optimizing GKE cluster or workload costs. The source warns that Spot VMs can be preempted and should run fault-tolerant workloads with at least two replicas.

Written from the project's SKILL.md and checked against it.

What it can do

  • Resource quota setupProvides a template to set namespace hard limits that restrict consumption in multi-tenant clusters.
  • Pod rightsizingUses VPA recommendation mode and optimization rules to lower over-provisioned CPU and memory requests.
  • Spot VM selectionTargets Spot capacity for fault-tolerant workloads using the cloud.google.com/gke-spot nodeSelector.
  • Machine type selectionCompares machine families by use case and relative cost when choosing node shapes.
  • Committed use discount sizingGuides sizing resource-based and flexible CUDs to the steady-state baseline of usage.
  • Idle cluster cost reductionDescribes scaling node pools to zero or recreating clusters through IaC to cut idle costs.
  • Multi-tenant consolidationExplains sharing one cluster across teams using Namespaces and ResourceQuotas.

What you need

  • gcloud CLI
  • kubectl
  • bq (BigQuery CLI) for billing queries

Try asking

  • Rightsize my GKE deployment requests using VPA recommendations
  • Which of my GKE workloads are safe to run on Spot VMs?
  • How should I size committed use discounts for my GKE cluster?

Good to know

  • Spot VMs can be preempted with a 30-second notice.
  • Stateful workloads such as databases are not suitable for Spot VMs.
  • VPA recommendations need 24 or more hours of data collection.
  • ComputeClass and GPU selection are handled by gke-compute-classes, not this skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/gke-cost-optimization/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB
  • assets/resource-quota-example.yaml400 B
  • assets/spot-deployment-example.yaml733 B
  • assets/vpa-recommendation-mode.yaml525 B
  • references/attribution.md2 KB

Alternatives to gke-cost-optimization

All alternatives →
deploy-release-testvercel
94

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.

AAA Skill 144k
deepeval-tracingconfident-ai
94

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.

AAA Skill 20k
azure-container-registry-cligithub
94

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.

AAA Skill 42k
crabbox-appsopenclaw
94

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.

AAA Skill 395k
gke-batch-hpcgoogle
94

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.

AAA Skill 25k
gke-cost-analysisgoogle
94

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.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

gke-cost-optimization: common questions

Does this skill cover Spot VMs on GKE?

Yes. It covers Spot VM targeting with nodeSelector for stateless or batch workloads in GKE Autopilot and warns about preemption risk. Spot-first ComputeClass setup is handled by the gke-compute-classes skill.

How much committed use discount should I buy?

The source says to size commitments to the steady-state baseline only, because a commitment bills for the full term whether or not it is used. Variable usage should be covered by autoscaling and Spot VMs.

Where do I set up GKE cost allocation?

Cost allocation with --enable-cost-allocation, kubectl top checks, and BigQuery cost breakdowns are handled by the gke-cost-analysis skill.

How do I install gke-cost-optimization?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gke-cost-optimization free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gke-cost-optimization safe to use?

It scores 92 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-cost-optimization?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

gke-cost-optimization Install

Add to stack

Loading.