
Skill
gke-compute-class-creator
create GKE ComputeClass resources
Description
Guide for creating GKE ComputeClass resources. Use this skill when users want to define custom node configurations, autoscaling priorities, or hardware requirements (e.g., Spot VMs, GPUs, specific machine families) for their GKE workloads.
SKILL.md
Creating GKE ComputeClasses
This skill helps you construct ComputeClass resources for Google Kubernetes Engine (GKE). ComputeClasses allow for declarative node configuration and sophisticated autoscaling behaviors like fallback priorities and active migration.
Workflow
- Analyze Requirements: Determine the user's goals (Cost optimization? Specific hardware? High availability?).
- Select Strategy:
- Cost Optimization: Use
spot: trueas a high priority, withspot: falseas a fallback. - Performance: Select specific
machineFamily(e.g.,c3,c4) ormachineType. - AI/ML: Configure
gpuortpufields.
- Cost Optimization: Use
- Construct YAML: Use the references below to build the
ComputeClassmanifest. - Validate: Ensure all fields comply with the specification.
- Apply: Provide the user with the
kubectl apply -f <filename>.yamlcommand.
References
- Specification: Detailed breakdown of the
ComputeClassCRD fields (priorities,machineFamily,gpu, etc.). - Examples: Copy-pasteable YAML patterns for common scenarios (Spot fallback, GPU, Zonal).
Usage Tips
- Active Migration: If the user wants to automatically move back to Spot VMs when they become available, ensure
spec.activeMigration.optimizeRulePriorityis set totrue. - Node Selection: Remind the user that to use the class, their Pods must specify:
nodeSelector: cloud.google.com/compute-class: "<class-name>" - Conflict Warning: Advise against mixing
ComputeClassselection with other hard node selectors (likecloud.google.com/gke-spot) as this can lead to scheduling conflicts.
More skills from the gke-mcp repository
View all 25 skillscustom-golden-image-discovery
discover golden base images for GKE nodes
Jul 12DeploymentGoogle CloudKubernetesgke-ai-troubleshooting-handle-disruption-gpu-tpu
diagnose GPU and TPU workload disruptions
Jul 28DebuggingGoogle CloudKubernetesPerformancegke-ai-troubleshooting-jobset-interruption
diagnose GKE JobSet interruptions
Jul 12DebuggingGoogle CloudKubernetesObservabilitygke-ai-troubleshooting-skill-creation-guide
create GKE troubleshooting skill bundles
Jul 12DocumentationEngineeringGoogle CloudTechnical Writinggke-ai-troubleshooting-tpu-connection-failure-vbar-oom
diagnose GKE TPU connection failures
Jul 12DebuggingGoogle CloudKubernetesPerformancegke-app-onboarding
containerize and deploy apps to GKE
Jul 12ContainersDeploymentGoogle CloudKubernetes +1
More from Google Cloud
View publisherkb-search
search and extract local knowledge base documents
knowledge-catalog
Jul 12DocumentationKnowledge BaseSearchknowledge_catalog_discovery_agent
search and rank Knowledge Catalog data entries
knowledge-catalog
Jul 12Data AnalysisGoogle CloudKnowledge ManagementSearchcontributing
contribute to Cloud Foundation Fabric
cloud-foundation-fabric
Jul 31AutomationEngineeringGitHubGoogle Cloud +1fabric-builder
generate Terraform code for Google Cloud
cloud-foundation-fabric
Jul 12Google CloudInfrastructure as CodeTerraformfast-0-org-setup-prereqs
prepare prerequisites for FAST 0-org-setup
cloud-foundation-fabric
Jul 12Google CloudOperationsagent-aware-cli
design agent-aware command-line interfaces
vertex-ai-creative-studio
Jul 12CLIEngineeringGoogle Cloud