[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M720Y4QE9NMPNCHTCFNQPVPH":3,"skill-same:01M720Y4QE9NMPNCHTCFNQPVPH":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M720Y4QE9NMPNCHTCFNQPVPH","gke-cluster-creation",null,"Plans GKE cluster creation and provisioning as a pull request in the GitOps repository's format, and audits production readiness, using pre-defined templates (Autopilot, Standard Regional, GPU\u002FAI Inference, AI Hypercompute). Use when creating GKE clusters, provisioning GKE environments, selecting cluster modes, or auditing GKE clusters. Don't use for application onboarding or deployment configuration (use gke-app-onboarding instead).","gke-labs\u002Fkube-agents","gke-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197140281?v=4","01M720MEZR8K6WD2WTHNQE346Q","01M720MF0BRA9RGH1QVT4J0M0E",126,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-cluster-creation\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gke-cluster-creation\ndescription: >-\n  Plans GKE cluster creation and provisioning as a pull request in the\n  GitOps repository's format, and audits production readiness, using\n  pre-defined templates (Autopilot, Standard Regional,\n  GPU\u002FAI Inference, AI Hypercompute). Use when creating GKE clusters,\n  provisioning GKE environments, selecting cluster modes, or auditing GKE\n  clusters. Don't use for application onboarding or deployment configuration\n  (use gke-app-onboarding instead).\nmetadata:\n  category: Containers\n---\n\n# GKE Cluster Creation\n\nThis reference guides creating Google Kubernetes Engine (GKE) clusters by\nproviding a set of best-practice templates and guiding through mode selection\nand customization. The **golden path Autopilot** configuration is the default\nfor a new cluster whose workload states no requirement it cannot meet.\n\n> **MCP Tools:** `list_clusters`, `get_cluster`,\n> `list_operations`, `get_operation`\n\n## Workflow\n\n1.  **Discover context**: Use `list_clusters` to see existing clusters. Use\n    `gcloud config get-value project` if project unknown.\n2.  **Gather inputs**: `project_id`, `location` (region or zone),\n    `cluster_name`, environment type. If missing essential details, ask the user\n    before taking action.\n3.  **Select mode & explain trade-offs**: When the request names a workload\n    the cluster is for (\"with Agent Substrate installed\"), read that\n    workload's install requirements before choosing anything (`SOUL.md` §3,\n    item 4.1): the Developer Knowledge MCP for what Google documents, the\n    project's own repository (**inspect-repository**) otherwise. A\n    requirement it states (Standard mode, a machine series, beta APIs, a node\n    label, a bucket or IAM binding it expects) overrides every template\n    default below, and the pull request body lists each one with its source.\n    Search-result snippets are not requirements. If the user hasn't specified\n    a template or mode, present the available templates (e.g., Autopilot,\n    Standard Regional, GPU Inference, AI Hypercompute) and explain key\n    trade-offs (Cost vs. Availability, Autopilot vs. Standard node\n    management).\n4.  **Configure networking**: auto-create subnet (default) or bring-your-own.\n5.  **Review golden path settings**: present the default configuration block\n    (the template's settings, with step 3's workload requirements applied over\n    them) as the configuration the pull request will carry.\n6.  **Propose**: Write the configuration as a pull request in the format the\n    GitOps repository's `provisioning\u002F` path already holds: Config Connector\n    YAML through the `gcp-config-connector` skill, Terraform HCL through the\n    `gcp-terraform` skill. An empty `provisioning\u002F` path or no usable\n    repository is a stated stop (`SOUL.md` §3, items 6 and 7). Never\n    create the cluster directly: the `gke` MCP server offers no create\n    tool, and the broker refuses\n    `gcloud container clusters create`.\n7.  **Track**: Once the pull request merges and the reconciler starts the\n    create, use `get_operation` to monitor its progress.\n8.  **Verify**: Use `get_cluster` with `readMask=\"*\"` to confirm the\n    settings the pull request carried applied.\n\n## Mode Selection\n\n| Criteria           | Autopilot (Golden Path)   | Standard                  |\n| ------------------ | ------------------------- | ------------------------- |\n| Node management    | Google-managed            | Self-managed              |\n| Pricing            | Pay per pod resource      | Pay per node (VM)         |\n:                    : request                   :                           :\n| Node customization | Via ComputeClasses        | Full control              |\n| DaemonSets         | Allowed (with             | Full control              |\n:                    : restrictions)             :                           :\n| GPU\u002FTPU            | Supported via             | Supported via node pools  |\n:                    : ComputeClasses            :                           :\n| Best for           | Most production workloads | Kernel tuning, custom OS, |\n:                    :                           : privileged workloads      :\n\n> **Rule**: Default to Autopilot unless the customer, or the workload the\n> cluster is for, has a requirement Autopilot cannot satisfy. A workload's\n> stated requirement (from step 3) wins over this default, and over every\n> template value below: a template default applies only where the workload\n> sets nothing.\n\n## Best Practices\n\nWhen guiding the user or generating configurations, adhere to these GKE best\npractices:\n\n### Security & Networking\n\n1.  **Private Clusters**: Default to private clusters (`enablePrivateNodes:\n    true`) with a private control plane and restricted public endpoints\n    (`enable-master-authorized-networks`) to minimize attack surface.\n2.  **VPC-Native Networking**: Use VPC-native clusters (`useIpAliases: true` \u002F\n    `--enable-ip-alias`) to enable alias IP ranges and pod-level firewall rules.\n3.  **Workload Identity**: Prefer Workload Identity (`workloadPool:\n    \u003CPROJECT_ID>.svc.id.goog`) for securely granting GKE workloads access to\n    Google Cloud services instead of static service account keys.\n4.  **Shielded GKE Nodes**: Enable Shielded GKE Nodes\n    (`--enable-shielded-nodes`, `--enable-secure-boot`) against rootkits and\n    bootkits.\n5.  **Least Privilege (RBAC)**: Institute strict Role-Based Access Control\n    limits (`scoped-rbs-bindings`).\n\n### Cost Optimization\n\n1.  **Autoscaling**: Enable Cluster Autoscaler and Horizontal\u002FVertical Pod\n    Autoscaler (`--enable-autoscaling`, `--enable-vertical-pod-autoscaling`) to\n    adjust resources based on demand.\n2.  **Right-Sizing & Spot VMs**: Choose appropriate machine types and node\n    counts. Consider Spot VMs (`--spot`) for fault-tolerant, non-critical batch\n    or inference workloads.\n\n### High Availability & Reliability\n\n1.  **Regional Clusters**: Use Regional Clusters for production environments to\n    ensure control plane replication across multiple zones (`--region` instead\n    of `--zone`). *Note: Standard regional creates nodes across 3 zones by\n    default.*\n2.  **Pod Disruption Budgets**: Recommend setting Pod Disruption Budgets for\n    application stability during node maintenance.\n3.  **Release Channels**: Subscribe to a release channel (`REGULAR` or `STABLE`)\n    for automated, safer cluster upgrades.\n\n## Templates\n\n### 1. Golden Path Autopilot (Production)\n\nThis is the default. All settings match\n`..\u002Fgke-golden-path\u002Fassets\u002Fgolden-path-autopilot.yaml`.\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"autopilot\": { \"enabled\": true },\n    \"privateClusterConfig\": { \"enablePrivateNodes\": true },\n    \"masterAuthorizedNetworksConfig\": {\n      \"privateEndpointEnforcementEnabled\": true\n    },\n    \"releaseChannel\": { \"channel\": \"REGULAR\" },\n    \"secretManagerConfig\": {\n      \"enabled\": true,\n      \"rotationConfig\": { \"enabled\": true, \"rotationInterval\": \"120s\" }\n    },\n    \"rbacBindingConfig\": {\n      \"enableInsecureBindingSystemAuthenticated\": false,\n      \"enableInsecureBindingSystemUnauthenticated\": false\n    }\n  }\n}\n```\n\n### 2. Autopilot Dev\u002FTest\n\nRelaxes some golden path defaults for cost savings and easier access in\nnon-production.\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"autopilot\": { \"enabled\": true },\n    \"releaseChannel\": { \"channel\": \"RAPID\" }\n  }\n}\n```\n\n> **Warning**: This does not apply golden path security hardening. Suitable for\n> dev\u002Ftest only.\n\n### 3. Standard Regional (High Availability \u002F Custom Requirements)\n\nBest when Autopilot cannot be used (e.g., custom kernel tuning, specific node OS\nrequirements). Creates 3 nodes across zones by default.\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"initialNodeCount\": 3,\n    \"nodeConfig\": {\n      \"machineType\": \"e2-standard-4\",\n      \"diskType\": \"pd-balanced\",\n      \"diskSizeGb\": 100,\n      \"oauthScopes\": [\"https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform\"],\n      \"shieldedInstanceConfig\": {\n        \"enableSecureBoot\": true,\n        \"enableIntegrityMonitoring\": true\n      },\n      \"workloadMetadataConfig\": {\n        \"mode\": \"GKE_METADATA\"\n      }\n    },\n    \"privateClusterConfig\": { \"enablePrivateNodes\": true },\n    \"releaseChannel\": { \"channel\": \"REGULAR\" },\n    \"workloadIdentityConfig\": {\n      \"workloadPool\": \"\u003CPROJECT_ID>.svc.id.goog\"\n    }\n  }\n}\n```\n\n### 4. GPU Inference & AI Workloads (L4 \u002F ComputeClass)\n\nBest for: AI\u002FML Inference, small model serving. Can be provisioned via\nAutopilot + ComputeClass or via Standard node pool with `g2-standard-4`\n(`nvidia-l4`). *Note: Requires `g2-standard-4` quota.*\n\n**Autopilot ComputeClass \u002F GIQ approach:** the cluster is template 1. The manifests below go into the repository through a pull request; the agent never runs `kubectl apply`.\n\n```bash\n# ComputeClass manifest (see gke-compute-classes.md)\nkubectl apply -f gpu-compute-class.yaml\n\n# Or render the GIQ inference manifest (see gke-inference.md)\ngcloud container ai profiles manifests create \\\n  --model=gemma-2-9b-it --model-server=vllm --accelerator-type=nvidia-l4 --quiet > inference.yaml\nkubectl apply -f inference.yaml\n```\n\n**Standard node pool approach, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"initialNodeCount\": 1,\n    \"nodeConfig\": {\n      \"machineType\": \"g2-standard-4\",\n      \"accelerators\": [\n        {\n          \"acceleratorCount\": \"1\",\n          \"acceleratorType\": \"nvidia-l4\"\n        }\n      ],\n      \"diskSizeGb\": 100,\n      \"oauthScopes\": [\"https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform\"]\n    }\n  }\n}\n```\n\n### 5. AI Hypercompute (A3 HighGPU \u002F Large Model Serving)\n\nBest for: Large-scale LLM \u002F AI model training and hypercompute inference. *Note:\nHigh hourly cost and strict quota requirements (`a3-highgpu-8g` \u002F\n`nvidia-h100-80gb-hbm3`).*\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"initialNodeCount\": 1,\n    \"nodeConfig\": {\n      \"machineType\": \"a3-highgpu-8g\",\n      \"accelerators\": [\n        {\n          \"acceleratorCount\": \"8\",\n          \"acceleratorType\": \"nvidia-h100-80gb-hbm3\"\n        }\n      ],\n      \"diskSizeGb\": 200,\n      \"oauthScopes\": [\"https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform\"]\n    }\n  }\n}\n```\n\n## Instructions\n\n-   **ALWAYS** ask for `project_id` if not in context.\n-   **ALWAYS** ask for `region` (or location).\n-   **ALWAYS** ask for a unique `cluster_name`.\n-   **DEFAULT** to golden path Autopilot unless customer specifies otherwise or\n    has custom node\u002Fkernel\u002Fhypercompute requirements.\n-   **ALWAYS WARN** when deviating to GKE Standard, highlighting that it\n    deviates from the golden path and explaining the added\n    operational\u002Fmanagement overhead (manually managing node pools, upgrades, and\n    autoscaling).\n-   **EXPLAIN TRADE-OFFS** when presenting templates or mode choices to the user\n    if they haven't specified one (e.g., Autopilot vs Standard, Cost vs\n    Availability).\n-   **PRESENT THE CONFIGURATION** in the pull request body, setting by\n    setting, so the reviewer approves the shape along with the change.\n-   **WARN** about Day-0 decisions (networking, private nodes) that are hard to\n    change later.\n-   **WARN** explicitly about cost and quota requirements when the user selects\n    GPU (`g2-standard-4`, `a3-highgpu-8g`), TPU, or multi-region\u002Fregional\n    clusters (`--region` defaults to 3 zones).\n-   A cluster's name is the **short name** (e.g., `my-cluster`), not the full\n    resource path\n    (`projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\u002Fclusters\u002F\u003CCLUSTER_NAME>`).\n\n\u003C!-- kube-agents: local addition (auto-injected by sync-upstream-skills.py) -->\n\n## Required final step: provision the Cluster Agent profile\n\nCreating a cluster is **not complete** until it has a Cluster Agent. A managed cluster and its\nCluster Agent profile are **created together** — never leave a newly created cluster without a\nprofile. Once the merged change has produced the cluster and it is reachable, create its\ndedicated **Cluster Agent** profile (this is what makes the cluster delegable for runtime\ndebugging). Use the [cluster-agent-lifecycle](..\u002Fcluster-agent-lifecycle\u002FSKILL.md) skill:\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fscripts\u002Fcluster_agent_profile.py create \\\n  --project \"\u003Cproject>\" --cluster \"\u003Ccluster>\" --location \"\u003Clocation>\"\n```\n\nThe command is idempotent, so it is safe to re-run. This gives the new cluster an agent\nimmediately. (The `cluster-agent-reconcile` cron would also pick it up on its next run — it\nmanages every cluster in every project in scope, so no labeling is required.)\n\n## Cluster Agent Profile Teardown\n\nA managed cluster and its Cluster Agent profile are **deleted together**. When a cluster is\ndecommissioned\u002Fdeleted, also remove its dedicated **Cluster Agent** profile (created at onboarding).\nUse the [cluster-agent-lifecycle](..\u002Fcluster-agent-lifecycle\u002FSKILL.md) skill:\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fscripts\u002Fcluster_agent_profile.py delete \\\n  --project \"\u003Cproject>\" --cluster \"\u003Ccluster>\" --location \"\u003Clocation>\"\n```\n\nDo not delete a Cluster Agent profile while its cluster still exists.\n\nDeleting the profile here is the immediate, preferred path. As a backstop, the hourly\n`cluster-agent-reconcile` job auto-prunes any profile whose cluster is definitively gone, so a\nprofile missed during teardown is cleaned up on the next reconcile cycle.\n\n## Before recommending GPU\u002FTPU or large-shape capacity\n\nBefore recommending capacity for a GPU\u002FTPU or large-shape design, load the\n[capacity-obtainability](..\u002Fcapacity-obtainability\u002FSKILL.md) skill and run its diagnostics:\nverify the regional quota for the exact accelerator metric (e.g. `NVIDIA_A100_GPUS`), then gather\ncapacity obtainability advice (`gcloud beta compute advice capacity`) for the requested machine\nshape and count across the region's zones, for the Spot and Flex-Start provisioning models the\nadvice API accepts. That skill owns the rules for what to probe and how to report it; follow it\nrather than restating them here.\n","# GKE Cluster Creation\n\nThis reference guides creating Google Kubernetes Engine (GKE) clusters by\nproviding a set of best-practice templates and guiding through mode selection\nand customization. The **golden path Autopilot** configuration is the default\nfor a new cluster whose workload states no requirement it cannot meet.\n\n> **MCP Tools:** `list_clusters`, `get_cluster`,\n> `list_operations`, `get_operation`\n\n## Workflow\n\n1.  **Discover context**: Use `list_clusters` to see existing clusters. Use\n    `gcloud config get-value project` if project unknown.\n2.  **Gather inputs**: `project_id`, `location` (region or zone),\n    `cluster_name`, environment type. If missing essential details, ask the user\n    before taking action.\n3.  **Select mode & explain trade-offs**: When the request names a workload\n    the cluster is for (\"with Agent Substrate installed\"), read that\n    workload's install requirements before choosing anything (`SOUL.md` §3,\n    item 4.1): the Developer Knowledge MCP for what Google documents, the\n    project's own repository (**inspect-repository**) otherwise. A\n    requirement it states (Standard mode, a machine series, beta APIs, a node\n    label, a bucket or IAM binding it expects) overrides every template\n    default below, and the pull request body lists each one with its source.\n    Search-result snippets are not requirements. If the user hasn't specified\n    a template or mode, present the available templates (e.g., Autopilot,\n    Standard Regional, GPU Inference, AI Hypercompute) and explain key\n    trade-offs (Cost vs. Availability, Autopilot vs. Standard node\n    management).\n4.  **Configure networking**: auto-create subnet (default) or bring-your-own.\n5.  **Review golden path settings**: present the default configuration block\n    (the template's settings, with step 3's workload requirements applied over\n    them) as the configuration the pull request will carry.\n6.  **Propose**: Write the configuration as a pull request in the format the\n    GitOps repository's `provisioning\u002F` path already holds: Config Connector\n    YAML through the `gcp-config-connector` skill, Terraform HCL through the\n    `gcp-terraform` skill. An empty `provisioning\u002F` path or no usable\n    repository is a stated stop (`SOUL.md` §3, items 6 and 7). Never\n    create the cluster directly: the `gke` MCP server offers no create\n    tool, and the broker refuses\n    `gcloud container clusters create`.\n7.  **Track**: Once the pull request merges and the reconciler starts the\n    create, use `get_operation` to monitor its progress.\n8.  **Verify**: Use `get_cluster` with `readMask=\"*\"` to confirm the\n    settings the pull request carried applied.\n\n## Mode Selection\n\n| Criteria           | Autopilot (Golden Path)   | Standard                  |\n| ------------------ | ------------------------- | ------------------------- |\n| Node management    | Google-managed            | Self-managed              |\n| Pricing            | Pay per pod resource      | Pay per node (VM)         |\n:                    : request                   :                           :\n| Node customization | Via ComputeClasses        | Full control              |\n| DaemonSets         | Allowed (with             | Full control              |\n:                    : restrictions)             :                           :\n| GPU\u002FTPU            | Supported via             | Supported via node pools  |\n:                    : ComputeClasses            :                           :\n| Best for           | Most production workloads | Kernel tuning, custom OS, |\n:                    :                           : privileged workloads      :\n\n> **Rule**: Default to Autopilot unless the customer, or the workload the\n> cluster is for, has a requirement Autopilot cannot satisfy. A workload's\n> stated requirement (from step 3) wins over this default, and over every\n> template value below: a template default applies only where the workload\n> sets nothing.\n\n## Best Practices\n\nWhen guiding the user or generating configurations, adhere to these GKE best\npractices:\n\n### Security & Networking\n\n1.  **Private Clusters**: Default to private clusters (`enablePrivateNodes:\n    true`) with a private control plane and restricted public endpoints\n    (`enable-master-authorized-networks`) to minimize attack surface.\n2.  **VPC-Native Networking**: Use VPC-native clusters (`useIpAliases: true` \u002F\n    `--enable-ip-alias`) to enable alias IP ranges and pod-level firewall rules.\n3.  **Workload Identity**: Prefer Workload Identity (`workloadPool:\n    \u003CPROJECT_ID>.svc.id.goog`) for securely granting GKE workloads access to\n    Google Cloud services instead of static service account keys.\n4.  **Shielded GKE Nodes**: Enable Shielded GKE Nodes\n    (`--enable-shielded-nodes`, `--enable-secure-boot`) against rootkits and\n    bootkits.\n5.  **Least Privilege (RBAC)**: Institute strict Role-Based Access Control\n    limits (`scoped-rbs-bindings`).\n\n### Cost Optimization\n\n1.  **Autoscaling**: Enable Cluster Autoscaler and Horizontal\u002FVertical Pod\n    Autoscaler (`--enable-autoscaling`, `--enable-vertical-pod-autoscaling`) to\n    adjust resources based on demand.\n2.  **Right-Sizing & Spot VMs**: Choose appropriate machine types and node\n    counts. Consider Spot VMs (`--spot`) for fault-tolerant, non-critical batch\n    or inference workloads.\n\n### High Availability & Reliability\n\n1.  **Regional Clusters**: Use Regional Clusters for production environments to\n    ensure control plane replication across multiple zones (`--region` instead\n    of `--zone`). *Note: Standard regional creates nodes across 3 zones by\n    default.*\n2.  **Pod Disruption Budgets**: Recommend setting Pod Disruption Budgets for\n    application stability during node maintenance.\n3.  **Release Channels**: Subscribe to a release channel (`REGULAR` or `STABLE`)\n    for automated, safer cluster upgrades.\n\n## Templates\n\n### 1. Golden Path Autopilot (Production)\n\nThis is the default. All settings match\n`..\u002Fgke-golden-path\u002Fassets\u002Fgolden-path-autopilot.yaml`.\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"autopilot\": { \"enabled\": true },\n    \"privateClusterConfig\": { \"enablePrivateNodes\": true },\n    \"masterAuthorizedNetworksConfig\": {\n      \"privateEndpointEnforcementEnabled\": true\n    },\n    \"releaseChannel\": { \"channel\": \"REGULAR\" },\n    \"secretManagerConfig\": {\n      \"enabled\": true,\n      \"rotationConfig\": { \"enabled\": true, \"rotationInterval\": \"120s\" }\n    },\n    \"rbacBindingConfig\": {\n      \"enableInsecureBindingSystemAuthenticated\": false,\n      \"enableInsecureBindingSystemUnauthenticated\": false\n    }\n  }\n}\n```\n\n### 2. Autopilot Dev\u002FTest\n\nRelaxes some golden path defaults for cost savings and easier access in\nnon-production.\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"autopilot\": { \"enabled\": true },\n    \"releaseChannel\": { \"channel\": \"RAPID\" }\n  }\n}\n```\n\n> **Warning**: This does not apply golden path security hardening. Suitable for\n> dev\u002Ftest only.\n\n### 3. Standard Regional (High Availability \u002F Custom Requirements)\n\nBest when Autopilot cannot be used (e.g., custom kernel tuning, specific node OS\nrequirements). Creates 3 nodes across zones by default.\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"initialNodeCount\": 3,\n    \"nodeConfig\": {\n      \"machineType\": \"e2-standard-4\",\n      \"diskType\": \"pd-balanced\",\n      \"diskSizeGb\": 100,\n      \"oauthScopes\": [\"https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform\"],\n      \"shieldedInstanceConfig\": {\n        \"enableSecureBoot\": true,\n        \"enableIntegrityMonitoring\": true\n      },\n      \"workloadMetadataConfig\": {\n        \"mode\": \"GKE_METADATA\"\n      }\n    },\n    \"privateClusterConfig\": { \"enablePrivateNodes\": true },\n    \"releaseChannel\": { \"channel\": \"REGULAR\" },\n    \"workloadIdentityConfig\": {\n      \"workloadPool\": \"\u003CPROJECT_ID>.svc.id.goog\"\n    }\n  }\n}\n```\n\n### 4. GPU Inference & AI Workloads (L4 \u002F ComputeClass)\n\nBest for: AI\u002FML Inference, small model serving. Can be provisioned via\nAutopilot + ComputeClass or via Standard node pool with `g2-standard-4`\n(`nvidia-l4`). *Note: Requires `g2-standard-4` quota.*\n\n**Autopilot ComputeClass \u002F GIQ approach:** the cluster is template 1. The manifests below go into the repository through a pull request; the agent never runs `kubectl apply`.\n\n```bash\n# ComputeClass manifest (see gke-compute-classes.md)\nkubectl apply -f gpu-compute-class.yaml\n\n# Or render the GIQ inference manifest (see gke-inference.md)\ngcloud container ai profiles manifests create \\\n  --model=gemma-2-9b-it --model-server=vllm --accelerator-type=nvidia-l4 --quiet > inference.yaml\nkubectl apply -f inference.yaml\n```\n\n**Standard node pool approach, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"initialNodeCount\": 1,\n    \"nodeConfig\": {\n      \"machineType\": \"g2-standard-4\",\n      \"accelerators\": [\n        {\n          \"acceleratorCount\": \"1\",\n          \"acceleratorType\": \"nvidia-l4\"\n        }\n      ],\n      \"diskSizeGb\": 100,\n      \"oauthScopes\": [\"https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform\"]\n    }\n  }\n}\n```\n\n### 5. AI Hypercompute (A3 HighGPU \u002F Large Model Serving)\n\nBest for: Large-scale LLM \u002F AI model training and hypercompute inference. *Note:\nHigh hourly cost and strict quota requirements (`a3-highgpu-8g` \u002F\n`nvidia-h100-80gb-hbm3`).*\n\n**Settings, as API fields (map them onto the repository's own format; never send this to a create call):**\n\n```json\n{\n  \"parent\": \"projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\",\n  \"cluster\": {\n    \"name\": \"\u003CCLUSTER_NAME>\",\n    \"initialNodeCount\": 1,\n    \"nodeConfig\": {\n      \"machineType\": \"a3-highgpu-8g\",\n      \"accelerators\": [\n        {\n          \"acceleratorCount\": \"8\",\n          \"acceleratorType\": \"nvidia-h100-80gb-hbm3\"\n        }\n      ],\n      \"diskSizeGb\": 200,\n      \"oauthScopes\": [\"https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform\"]\n    }\n  }\n}\n```\n\n## Instructions\n\n-   **ALWAYS** ask for `project_id` if not in context.\n-   **ALWAYS** ask for `region` (or location).\n-   **ALWAYS** ask for a unique `cluster_name`.\n-   **DEFAULT** to golden path Autopilot unless customer specifies otherwise or\n    has custom node\u002Fkernel\u002Fhypercompute requirements.\n-   **ALWAYS WARN** when deviating to GKE Standard, highlighting that it\n    deviates from the golden path and explaining the added\n    operational\u002Fmanagement overhead (manually managing node pools, upgrades, and\n    autoscaling).\n-   **EXPLAIN TRADE-OFFS** when presenting templates or mode choices to the user\n    if they haven't specified one (e.g., Autopilot vs Standard, Cost vs\n    Availability).\n-   **PRESENT THE CONFIGURATION** in the pull request body, setting by\n    setting, so the reviewer approves the shape along with the change.\n-   **WARN** about Day-0 decisions (networking, private nodes) that are hard to\n    change later.\n-   **WARN** explicitly about cost and quota requirements when the user selects\n    GPU (`g2-standard-4`, `a3-highgpu-8g`), TPU, or multi-region\u002Fregional\n    clusters (`--region` defaults to 3 zones).\n-   A cluster's name is the **short name** (e.g., `my-cluster`), not the full\n    resource path\n    (`projects\u002F\u003CPROJECT_ID>\u002Flocations\u002F\u003CREGION>\u002Fclusters\u002F\u003CCLUSTER_NAME>`).\n\n\u003C!-- kube-agents: local addition (auto-injected by sync-upstream-skills.py) -->\n\n## Required final step: provision the Cluster Agent profile\n\nCreating a cluster is **not complete** until it has a Cluster Agent. A managed cluster and its\nCluster Agent profile are **created together** — never leave a newly created cluster without a\nprofile. Once the merged change has produced the cluster and it is reachable, create its\ndedicated **Cluster Agent** profile (this is what makes the cluster delegable for runtime\ndebugging). Use the [cluster-agent-lifecycle](..\u002Fcluster-agent-lifecycle\u002FSKILL.md) skill:\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fscripts\u002Fcluster_agent_profile.py create \\\n  --project \"\u003Cproject>\" --cluster \"\u003Ccluster>\" --location \"\u003Clocation>\"\n```\n\nThe command is idempotent, so it is safe to re-run. This gives the new cluster an agent\nimmediately. (The `cluster-agent-reconcile` cron would also pick it up on its next run — it\nmanages every cluster in every project in scope, so no labeling is required.)\n\n## Cluster Agent Profile Teardown\n\nA managed cluster and its Cluster Agent profile are **deleted together**. When a cluster is\ndecommissioned\u002Fdeleted, also remove its dedicated **Cluster Agent** profile (created at onboarding).\nUse the [cluster-agent-lifecycle](..\u002Fcluster-agent-lifecycle\u002FSKILL.md) skill:\n\n```bash\npython3 \u002Fopt\u002Fdata\u002Fscripts\u002Fcluster_agent_profile.py delete \\\n  --project \"\u003Cproject>\" --cluster \"\u003Ccluster>\" --location \"\u003Clocation>\"\n```\n\nDo not delete a Cluster Agent profile while its cluster still exists.\n\nDeleting the profile here is the immediate, preferred path. As a backstop, the hourly\n`cluster-agent-reconcile` job auto-prunes any profile whose cluster is definitively gone, so a\nprofile missed during teardown is cleaned up on the next reconcile cycle.\n\n## Before recommending GPU\u002FTPU or large-shape capacity\n\nBefore recommending capacity for a GPU\u002FTPU or large-shape design, load the\n[capacity-obtainability](..\u002Fcapacity-obtainability\u002FSKILL.md) skill and run its diagnostics:\nverify the regional quota for the exact accelerator metric (e.g. `NVIDIA_A100_GPUS`), then gather\ncapacity obtainability advice (`gcloud beta compute advice capacity`) for the requested machine\nshape and count across the region's zones, for the Spot and Flex-Start provisioning models the\nadvice API accepts. That skill owns the rules for what to probe and how to report it; follow it\nrather than restating them here.\n",{"name":5,"metadata":23,"description":7},{"category":24},"Containers","main","af354bf2b99e17df77e52c512a7ba968c37c2306","agents\u002Fplatform\u002Fskills\u002Fgke-cluster-creation",44,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents","https:\u002F\u002Fgke-labs.github.io\u002Fkube-agents\u002F","https:\u002F\u002Fgithub.com\u002Fgke-labs","2026-11-14 20:53:19",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add gke-labs\u002Fkube-agents --skill gke-cluster-creation",{"tool":39,"command":40},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill gke-cluster-creation",{"tool":42,"command":43},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill gke-cluster-creation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-cluster-creation\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M72168JZM6CYRZFWW204PA2V","gke-workload-troubleshooting","Diagnoses GKE workload failures (CrashLoopBackOff, OOMKilled, ImagePullBackOff, Pending, etc.) via logs and events. Use when pods fail to start or crash repeatedly. Don't use for GKE cluster infrastructure provisioning, node pool creation, or non-Kubernetes Google Cloud services.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-troubleshooting\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M721643JPG43MFDHGN067D7T","gke-workload-security","Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-security\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M721618QGFKZRWHS0RFVG7WT","gke-workload-scaling","Manages scaling for GKE workloads using HPA and VPA. Use when configuring Horizontal Pod Autoscaler (HPA), configuring Vertical Pod Autoscaler (VPA), or applying best practices for GKE workload autoscaling. Do not use for cluster-level autoscaling (Cluster Autoscaler), static cluster sizing, or configuring node-level machine styles directly.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-scaling\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7215WA1TNFDZE22VJEN3XXW","gke-workload-identity","Configures and diagnoses Workload Identity Federation for GKE authentication failures for Pods (403 \"iam.serviceAccounts.getAccessToken\" \u002F permission denied, \"could not find default credentials\", or GKE metadata server unreachable) by verifying cluster and node-pool Workload Identity configuration, the Kubernetes ServiceAccount (KSA) to IAM binding (direct principal binding and legacy Google ServiceAccount impersonation), target-resource IAM roles, and gke-metadata-server health. Use when setting up KSA\u002FGSA bindings (`roles\u002Fiam.workloadIdentityUser`, `iam.gke.io\u002Fgcp-service-account`) or when a Pod cannot authenticate to Google Cloud APIs. Don't use for in-cluster Kubernetes RBAC errors (API-server authorization), general workload crashes (use gke-workload-troubleshooting), or Pod Security Standards and NetworkPolicies (use gke-workload-security).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-identity\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7215PJTBTZ0W15ZZ2W32FF9","gke-upgrades","Plans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre\u002Fpost-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like \"we need to upgrade our clusters\" or \"plan our next GKE maintenance\" or \"our upgrade is stuck.\" Don't use for GKE cluster creation, application onboarding, general networking\u002Frouting setup, or security policy configurations (use gke-basics or relevant GKE skills instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-upgrades\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7215JX0FBZBTG4570CJ20HS","gke-tpu-metrics-monitoring","Monitors and troubleshoots GKE TPU workloads, nodes, and node pools using GKE system metrics and PromQL. Use when monitoring TensorCore duty cycle, TPU memory, node readiness, multi-host TPU node pool availability, host maintenance or preemption interruptions, and calculating MTTR or MTBI metrics for GKE TPUs. Don't use for general non-TPU GKE workload monitoring or non-metric TPU debugging.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-tpu-metrics-monitoring\u002FSKILL.md",[],[]]