[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72133GRD4MG4FASJE0EP0XZ":3,"skill-same:01M72133GRD4MG4FASJE0EP0XZ":70},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M72133GRD4MG4FASJE0EP0XZ","gke-basics",null,"Manages core GKE cluster provisioning, credentials, Autopilot vs Standard selection, and workload deployment. Use when creating GKE clusters, fetching kubectl credentials, or deciding between Autopilot and Standard modes. Don't use for Workload Identity (use gke-workload-identity), GKE networking (use gke-networking), security hardening (use gke-platform-security or gke-workload-security), or cluster upgrades (use gke-upgrades).","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\u002Fthird_party\u002Fgoogle-skills\u002Fgke-basics\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gke-basics\nmetadata:\n  version: \"1.1.1\"\n  category: Containers\ndescription: >-\n  Manages core GKE cluster provisioning, credentials, Autopilot vs Standard selection,\n  and workload deployment. Use when creating GKE clusters, fetching kubectl credentials,\n  or deciding between Autopilot and Standard modes. Don't use for Workload Identity\n  (use gke-workload-identity), GKE networking (use gke-networking), security hardening\n  (use gke-platform-security or gke-workload-security), or cluster upgrades (use gke-upgrades).\n---\n\n# GKE Basics & Critical Gotchas\n\n> **Routing Note:** For Workload Identity KSA\u002FGSA setup, open `gke-workload-identity\u002FSKILL.md`. For cluster security flags (`--database-encryption-key`, `--security-posture`, RBAC, Shielded Nodes, Binary Authorization), open `gke-platform-security\u002FSKILL.md`. For cluster upgrades or maintenance windows, open `gke-upgrades\u002FSKILL.md`. For generating Kubernetes YAML manifests (`Deployment`, `StatefulSet`, `Service`, `HTTPRoute`, `PodDisruptionBudget`), open `gke-manifest-generation\u002FSKILL.md`.\n\nManaged Kubernetes platform on Google Cloud. Defaults to Autopilot mode unless Standard is explicitly required.\n\n## Key Selection Rules: Autopilot vs. Standard\n\n* **Default to Autopilot** for almost all workloads.\n* **Use Standard ONLY if:**\n  * Custom node OS kernel parameters (`sysctl`) are required.\n  * Custom node taints or specific hardware node pools are required.\n  * DaemonSets require raw `hostPath` mounts to the host OS filesystem.\n* When explaining why Standard is required over Autopilot, explicitly cite all matching restrictions (e.g., custom sysctls and custom node taints).\n* *For advanced cluster architecture or complex node pool creation planning, refer to `gke-cluster-creation`.*\n\n## Critical Gotchas & Best Practices\n\n1. **Private Autopilot Clusters:**\n   * Use `--enable-private-nodes` for private node IP addresses.\n   * Use `--enable-private-endpoint` to disable public IP access to the control plane.\n   * Restrict control plane access with `--enable-master-authorized-networks` and `--master-authorized-networks=CIDR_BLOCK`:\n     ```bash\n     gcloud container clusters create-auto CLUSTER_NAME --region=REGION \\\n       --enable-private-nodes \\\n       --enable-private-endpoint \\\n       --enable-master-authorized-networks \\\n       --master-authorized-networks=CIDR_BLOCK\n     ```\n\n2. **Workload Identity (IAM Binding):**\n   * Never mount raw GCP Service Account JSON keys in Pods; open `gke-workload-identity\u002FSKILL.md` for KSA\u002FGSA setup.\n\n3. **Autopilot Resource Requests:**\n   * In Autopilot, CPU requests must be specified in increments of 250m (0.25 vCPU). If an unaligned CPU request (e.g., 300m) is requested, round up to the nearest 250m increment (500m \u002F 0.5 vCPU).\n   * Resource requests equal limits automatically. Omit `limits` to allow Autopilot to set defaults matching `requests`.\n\n4. **Cluster Credentials:**\n   * Always explicitly specify `--region` (for regional clusters) or `--zone` (for zonal clusters) when fetching credentials:\n     ```bash\n     gcloud container clusters get-credentials CLUSTER_NAME --region=REGION --quiet\n     ```\n\n## Reference Directory\n\n-   [Core Concepts](references\u002Fcore-concepts.md): Architecture, cluster modes (Autopilot vs Standard), networking, scaling, and security model.\n\n-   [CLI Usage & Tool Reference](references\u002Fcli-reference.md): Tool preference hierarchy (MCP vs gcloud vs kubectl), `gcloud container` commands, and user preference overrides.\n\n-   [Client Libraries](references\u002Fclient-library-usage.md): Official Kubernetes and Google Cloud Container client libraries in Python, Go, Node.js, and Java.\n\n-   [MCP Usage](references\u002Fmcp-usage.md): Connecting to and using the 23 structured GKE MCP tools for cluster management, K8s resources, and diagnostics.\n\n-   [Infrastructure as Code](references\u002Fiac-usage.md): Terraform examples for `google_container_cluster` (Autopilot), Kubernetes provider resources, and YAML samples.\n","# GKE Basics & Critical Gotchas\n\n> **Routing Note:** For Workload Identity KSA\u002FGSA setup, open `gke-workload-identity\u002FSKILL.md`. For cluster security flags (`--database-encryption-key`, `--security-posture`, RBAC, Shielded Nodes, Binary Authorization), open `gke-platform-security\u002FSKILL.md`. For cluster upgrades or maintenance windows, open `gke-upgrades\u002FSKILL.md`. For generating Kubernetes YAML manifests (`Deployment`, `StatefulSet`, `Service`, `HTTPRoute`, `PodDisruptionBudget`), open `gke-manifest-generation\u002FSKILL.md`.\n\nManaged Kubernetes platform on Google Cloud. Defaults to Autopilot mode unless Standard is explicitly required.\n\n## Key Selection Rules: Autopilot vs. Standard\n\n* **Default to Autopilot** for almost all workloads.\n* **Use Standard ONLY if:**\n  * Custom node OS kernel parameters (`sysctl`) are required.\n  * Custom node taints or specific hardware node pools are required.\n  * DaemonSets require raw `hostPath` mounts to the host OS filesystem.\n* When explaining why Standard is required over Autopilot, explicitly cite all matching restrictions (e.g., custom sysctls and custom node taints).\n* *For advanced cluster architecture or complex node pool creation planning, refer to `gke-cluster-creation`.*\n\n## Critical Gotchas & Best Practices\n\n1. **Private Autopilot Clusters:**\n   * Use `--enable-private-nodes` for private node IP addresses.\n   * Use `--enable-private-endpoint` to disable public IP access to the control plane.\n   * Restrict control plane access with `--enable-master-authorized-networks` and `--master-authorized-networks=CIDR_BLOCK`:\n     ```bash\n     gcloud container clusters create-auto CLUSTER_NAME --region=REGION \\\n       --enable-private-nodes \\\n       --enable-private-endpoint \\\n       --enable-master-authorized-networks \\\n       --master-authorized-networks=CIDR_BLOCK\n     ```\n\n2. **Workload Identity (IAM Binding):**\n   * Never mount raw GCP Service Account JSON keys in Pods; open `gke-workload-identity\u002FSKILL.md` for KSA\u002FGSA setup.\n\n3. **Autopilot Resource Requests:**\n   * In Autopilot, CPU requests must be specified in increments of 250m (0.25 vCPU). If an unaligned CPU request (e.g., 300m) is requested, round up to the nearest 250m increment (500m \u002F 0.5 vCPU).\n   * Resource requests equal limits automatically. Omit `limits` to allow Autopilot to set defaults matching `requests`.\n\n4. **Cluster Credentials:**\n   * Always explicitly specify `--region` (for regional clusters) or `--zone` (for zonal clusters) when fetching credentials:\n     ```bash\n     gcloud container clusters get-credentials CLUSTER_NAME --region=REGION --quiet\n     ```\n\n## Reference Directory\n\n-   [Core Concepts](references\u002Fcore-concepts.md): Architecture, cluster modes (Autopilot vs Standard), networking, scaling, and security model.\n\n-   [CLI Usage & Tool Reference](references\u002Fcli-reference.md): Tool preference hierarchy (MCP vs gcloud vs kubectl), `gcloud container` commands, and user preference overrides.\n\n-   [Client Libraries](references\u002Fclient-library-usage.md): Official Kubernetes and Google Cloud Container client libraries in Python, Go, Node.js, and Java.\n\n-   [MCP Usage](references\u002Fmcp-usage.md): Connecting to and using the 23 structured GKE MCP tools for cluster management, K8s resources, and diagnostics.\n\n-   [Infrastructure as Code](references\u002Fiac-usage.md): Terraform examples for `google_container_cluster` (Autopilot), Kubernetes provider resources, and YAML samples.\n",{"name":5,"metadata":23,"description":7},{"version":24,"category":25},"1.1.1","Containers","main","af354bf2b99e17df77e52c512a7ba968c37c2306","third_party\u002Fgoogle-skills\u002Fgke-basics",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":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add gke-labs\u002Fkube-agents --skill gke-basics",{"tool":40,"command":41},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill gke-basics",{"tool":43,"command":44},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill gke-basics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-basics\u002FSKILL.md",true,[48,54,58,62,66],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fcli-reference.md","REFERENCE","参考文档",14578,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-basics\u002Freferences\u002Fcli-reference.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fclient-library-usage.md",2443,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-basics\u002Freferences\u002Fclient-library-usage.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fcore-concepts.md",3291,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-basics\u002Freferences\u002Fcore-concepts.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fiac-usage.md",2140,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-basics\u002Freferences\u002Fiac-usage.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fmcp-usage.md",6916,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-basics\u002Freferences\u002Fmcp-usage.md",[71,78,85,92,99,106],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"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":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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",[],[]]