gke-compute-classes

Configures GKE ComputeClasses for Kubernetes workloads with machine family selection, accelerator support, and Spot VM integration.

17.1k|1.4k|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/google/skills --skill gke-compute-classes-google
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gke-compute-classes
Source: https://github.com/google/skills/tree/main/skills/cloud/gke-compute-classes
Command: npx skills add https://github.com/google/skills --skill gke-compute-classes-google

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gcloud, kubectl, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps optimize and troubleshoot GKE ComputeClasses, enabling efficient resource allocation and cost management for Kubernetes workloads.

Core Features & Use Cases

  • ComputeClass Configuration: Configure ComputeClasses for specific machine families, accelerators, and performance profiles.
  • Spot VM Management: Integrate Spot VMs with on-demand fallback, optimizing for cost while maintaining high availability.
  • Accelerator Workloads: Target specific accelerators (GPUs/TPUs) for AI/ML workloads, ensuring optimal performance.
  • Use Case: For a machine learning model deployment, use this Skill to configure a ComputeClass targeting GPUs and set up a Spot VM with on-demand fallback to save costs and ensure consistent performance.

Quick Start

Run the following command to create a new ComputeClass named 'ml-gpu' targeting GPU workloads: gcloud services usage enable cloud.google.com/compute-class

Frequently Asked Questions about gke-compute-classes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize GKE compute costs for Kubernetes workloads?

Optimize GKE compute costs by configuring ComputeClasses to target specific machine families and integrate Spot VMs with on-demand fallback. This ensures efficient resource allocation and cost management for Kubernetes workloads.

How do I configure GKE ComputeClasses for GPU and AI/ML workloads?

Configure GKE ComputeClasses for AI/ML workloads by targeting specific accelerators like GPUs or TPUs. This ensures optimal performance for machine learning model deployments using Google Kubernetes Engine.

Can I use Spot VMs with on-demand fallback in Google Kubernetes Engine?

Yes, you can integrate Spot VMs with on-demand fallback in Google Kubernetes Engine. Configuring ComputeClasses with this approach optimizes for cost while maintaining high availability for your workloads.

Do I need gcloud and kubectl to manage GKE ComputeClasses?

Yes, managing GKE ComputeClasses requires both gcloud and kubectl. You need the Google Cloud SDK and Google Kubernetes Engine to configure machine families, accelerators, and performance profiles.

What is a GKE ComputeClass and when do I need it?

A GKE ComputeClass is a configuration resource for Google Kubernetes Engine that enables targeted machine family selection, accelerator support, and cost optimization. You need it to manage efficient resource allocation for infrastructure and AI/ML deployments.

How do I create a new ComputeClass in GKE for GPU workloads?

Create a new ComputeClass in GKE for GPU workloads by enabling the compute-class service and configuring the resource to target accelerators. Use gcloud to set up the ComputeClass named for your specific GPU requirements.