Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

gke-compute-classes

БесплатноЗапускает вложенные скриптыНе проверен

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators…

googleот google★ 25 380 звёзд на GitHub

Об этом скилле

GKE ComputeClasses

Guidance on configuring, optimizing, and troubleshooting GKE ComputeClasses.

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-compute-classes)" and append agent-skills/1.0 (skill:gke-compute-classes) to User-Agent headers.

When to Use

  • Cost optimization: Spot VMs with on-demand fallback.
  • GPU/TPU workloads: Target specific accelerators (e.g., L4, H100, v5p).
  • Performance tuning: Select specific machine families (c3, c4, n4).
  • Zone targeting: Colocate workloads with zonal resources.

CRITICAL RULES

  • CODE-FIRST VERIFICATION (OPEN-SOURCE CODEBASE): GKE Cluster Autoscaler and ComputeClasses are open-sourced at https://github.com/GoogleCloudPlatform/cluster-autoscaler. When user questions challenge or explore undocumented/subtle behaviors, or when guidance is not explicitly established in this skill, VERIFY BEHAVIOR DIRECTLY IN CODE (via local repository clone or fetching raw files from GitHub). Check git log -S and git blame to identify the exact commit and date when behavior changed, and communicate version/date ranges to the user (e.g. "This behavior changed on July 20, 2026 in upstream commit 129daa3756..."). See references/compute-class-code-index.md for exact package and symbol mappings.

Engagement Rules: Generalized First, Refine Later

ComputeClasses depend on zone availability, CUDs, and workload constraints. Do not block the user's initial request. If asked for YAML/recommendations:

  1. Provide Generalized Answer Immediately: Fulfill request using best practices and placeholders (<YOUR-ZONE-HERE>).
    • CRITICAL CUD RULE: You MUST state that the provided machine families (e.g., N4, C4) are generic best-practice examples. You MUST explicitly state that the final choice of machine family should be aligned with the user's existing Committed Use Discounts (CUDs) or Reservations.
    • CRITICAL CUD EXHAUSTION / CAPACITY QUOTA RULE: When a user asks how to cap a primary machine family to match a Committed Use Discount (CUD) footprint (e.g., 100-core CUD for N4) and automatically spill over excess workload demand to secondary families (N4D, C4), you MUST recommend a CapacityQuota (autoscaling.x-k8s.io/v1beta1, GKE 1.36.2+) targeting cloud.google.com/compute-class: <NAME> and cloud.google.com/machine-family: <PRIMARY_FAMILY> with a cpu: <CUD_CORES> limit. This caps only the primary preferred family without restricting secondary fallback priorities in the ComputeClass (n4d, c4), allowing Cluster Autoscaler to emit noScaleUp and automatically spill over excess demand to uncapped fallback families without pods staying in Pending. Do NOT recommend manual node pool limits or GCE Capacity Reservations for this pattern.
    • YAML REQUIREMENT: Any generated YAML template MUST include a comment near the machineFamily field: # IMPORTANT: Align machineFamily with your existing CUDs/Reservations.
    • MUST label initial YAML as EXAMPLE TEMPLATE - DO NOT DEPLOY.
    • STRICT SCHEMA RULE: NEVER hallucinate fields or place leaf names at the wrong spec level. Use bootDiskSize (NOT bootDiskSizeGb, which does not exist). Check GKE version gates before emitting newer CRD fields: spec.description (string, 1.33+), spec.nodePoolConfig.gvnic.enabled (boolean, 1.34.1-gke.3759000+), spec.priorities[].nodeSystemConfig.linuxNodeConfig.transparentHugepageEnabled (1.34.1-gke.3084001+), and spec.priorities[].nodeSystemConfig.kubeletConfig.shutdownGracePeriodSeconds (0 | 30 | 120, 1.36.0-gke.3204000+, Spot priorities only: the CRD rejects it on any rule without spot: true, and in priorityDefaults unless every priority is Spot). nodeSystemConfig sits under priorities[] or priorityDefaults, never directly under spec.
    • YAML FORMATTING RULE: NEVER quote integer or boolean values (e.g., use bootDiskSize: 50, not bootDiskSize: "50"). imageType MUST be lowercase.
    • CRITICAL AI/ML RULE: DO NOT recommend Spot instances as the primary priority for AI/ML Inference, even if the workload is stateless. Accelerator node startup latency is severe. The correct priority is: Reservations -> On-Demand -> DWS FlexStart -> Spot.
    • CRITICAL PROVISIONING RULE: Do NOT conf
Полный SKILL.md на GitHub

Установить gke-compute-classes в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/balanced-reserved-zonal-compute-class.yamlassets/capacity-quota-spillover.yamlassets/computeclass-rbac-editor.yamlassets/dynamic-rwo-storageclass.yamlassets/equal-priority-tiebreak-compute-class.yamlassets/genai-inference-g4-compute-class.yamlassets/kafka-broker-compute-class.yamlassets/log-autoscaler-events.shassets/manual-pool-tiebreak-compute-class.yamlassets/postgres-primary-compute-class.yamlassets/redis-compute-class.yamlassets/restrict-computeclass-usage-vap.yamlassets/shared-l4-inference-compute-class.yamlassets/spark-proximal-compute-class.yamlassets/spot-cost-tiebreak-compute-class.yamlassets/system-pool-compute-class.yamlassets/tpu-v5e-training-compute-class.yamlreferences/attribution.mdreferences/compute-class-autopilot-mode.mdreferences/compute-class-code-index.mdreferences/compute-class-cost-optimization.mdreferences/compute-class-crd-fields.mdreferences/compute-class-debug.mdreferences/compute-class-gotchas-and-cuds.mdreferences/compute-class-governance.mdreferences/compute-class-karpenter-migration.mdreferences/compute-class-lifecycle.mdreferences/compute-class-prioritization.mdreferences/compute-class-provisioning-methods.md

FAQ

Что делает скилл gke-compute-classes?

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto Provisioning configuration or general GKE cluster creation.

Как установить скилл gke-compute-classes?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл gke-compute-classes запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить gke-compute-classes с