gke-compute-classes
Fungsinya
Skill ini membantu agent AI mengatur dan memperbaiki ComputeClass GKE. Cocok untuk tim yang menginginkan penghematan biaya, akselerator tertentu, atau kendali atas tempat beban kerja berjalan.
Kapan dipakai
- ✓Saat Anda ingin VM Spot dengan fallback on-demand untuk menghemat biaya di GKE.
- ✓Saat beban kerja Anda memerlukan jenis GPU atau TPU tertentu di GKE.
- ✓Saat pod tetap pending dan Anda perlu memeriksa pengaturan ComputeClass.
Link skill
https://github.com/google/skills/blob/main/skills/cloud/gke-compute-classes/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bagaimana cara mengatur GKE agar pekerjaan saya memakai VM Spot tetapi beralih ke VM biasa saat kapasitas Spot habis?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menulis atau memeriksa pengaturan ComputeClass untuk famili mesin, akselerator, dan zona, serta memeriksa kode sumber terbuka saat perilakunya tidak terdokumentasi dengan jelas.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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). Checkgit log -Sandgit blameto 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..."). Seereferences/compute-class-code-index.mdfor 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:
- 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+) targetingcloud.google.com/compute-class: <NAME>andcloud.google.com/machine-family: <PRIMARY_FAMILY>with acpu: <CUD_CORES>limit. This caps only the primary preferred family without restricting secondary fallback priorities in theComputeClass(n4d,c4), allowing Cluster Autoscaler to emitnoScaleUpand 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
machineFamilyfield:# IMPORTANT: Align machineFamily with your existing CUDs/Reservations. - MUST label initial YAML as
EXAMPLE TEMPLATE - DO NOT DEPLOY. - STRICT SCHEMA RULE: NEVER hallucinate fields. Do NOT use
spec.description,gvnic,transparentHugepageEnabled, orshutdownGracePeriodSeconds. UsebootDiskSize(NOTbootDiskSizeGb). - YAML FORMATTING RULE: NEVER quote integer or boolean values (e.g.,
use
bootDiskSize: 50, notbootDiskSize: "50").imageTypeMUST 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 confuse node pool auto-creation
with cluster-level Node Auto Provisioning. Starting with GKE
1.33.3-gke.1136000, `nodePoolAutoCreation.enabl
Pertanyaan umum
Apakah ia mengatur Node Auto Provisioning di seluruh klaster?
Tidak. Node Auto Provisioning di tingkat klaster berada di luar skill ini.
Famili mesin apa yang disebutkan?
Ia menyebut contoh seperti famili c3, c4, dan n4, serta GPU seperti L4 dan H100.
Apakah ia bisa membantu menempatkan beban kerja di zona tertentu?
Bisa. Ia dapat menargetkan zona agar beban kerja berjalan dekat dengan sumber daya zonal.
Detail
Deskripsi asli dari pembuat
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.
repo: google/skills
Popularitas
- Bintang GitHub
- 22k
- Peringkat
- #10283
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
finding-google-skills
22kMembantu agent Anda menemukan panduan Google yang tepat untuk tugas pengaturan, seperti hosting, database, penyimpanan, login, atau penyajian model AI.
gcloud
22kMembantu agent Anda menulis dan memeriksa perintah gcloud Google Cloud, dengan mencari sintaks yang tepat sebelum menjalankan apa pun agar tidak menebak flag.
google-cloud-recipe-auth
22kMemandu agent Anda melalui identitas dan akses Google Cloud, termasuk cara orang dan layanan masuk serta izin apa yang mereka dapatkan.
google-cloud-recipe-onboarding
22kMemandu pengembang baru melalui langkah pertama di Google Cloud, termasuk memilih proyek, menautkan penagihan, dan men-deploy sumber daya pertama.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.