{"data":{"slug":"github-google-skills-skills-cloud-gke-basics-738b9832f6a3","title":"GKE Cluster Provisioning & Configuration","summary":"Create and configure GKE clusters, select between Autopilot and Standard mode, and retrieve kubectl credentials with required region or zone specifications.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-basics-738b9832f6a3","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-gke-basics-738b9832f6a3","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-basics-738b9832f6a3.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-basics-738b9832f6a3\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before executing any `gcloud`, REST API, or MCP command, read [Usage Attribution](references\/attribution.md). For terminal commands, prefix `gcloud` with `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:gke-basics)\"` and append `agent-skills\/1.0 (skill:gke-basics)` to `User-Agent` headers.","instructions":"---\nname: gke-basics\nmetadata:\n  version: \"1.1.2\"\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\/GSA setup, open `gke-workload-identity\/SKILL.md`. For cluster security flags (`--database-encryption-key`, `--security-posture`, RBAC, Shielded Nodes, Binary Authorization), open `gke-platform-security\/SKILL.md`. For cluster upgrades or maintenance windows, open `gke-upgrades\/SKILL.md`. For generating Kubernetes YAML manifests (`Deployment`, `StatefulSet`, `Service`, `HTTPRoute`, `PodDisruptionBudget`), open `gke-manifest-generation\/SKILL.md`.\n\nManaged Kubernetes platform on Google Cloud. Defaults to Autopilot mode unless Standard is explicitly required.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\/attribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:gke-basics)\"`\nand append `agent-skills\/1.0 (skill:gke-basics)` to `User-Agent` headers.\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\/SKILL.md` for KSA\/GSA 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 \/ 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\/core-concepts.md): Architecture, cluster modes (Autopilot vs Standard), networking, scaling, and security model.\n\n-   [CLI Usage & Tool Reference](references\/cli-reference.md): Tool preference hierarchy (MCP vs gcloud vs kubectl), `gcloud container` commands, and user preference overrides.\n\n-   [Client Libraries](references\/client-library-usage.md): Official Kubernetes and Google Cloud Container client libraries in Python, Go, Node.js, and Java.\n\n-   [MCP Usage](references\/mcp-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\/iac-usage.md): Terraform examples for `google_container_cluster` (Autopilot), Kubernetes provider resources, and YAML samples.\n","use_cases":["Creating a GKE cluster with private IP addresses and restricted access","Fetching kubectl credentials for a GKE cluster","Deciding between Autopilot and Standard mode based on workload requirements"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/gke-basics\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-17","created_at":"2026-11-16T15:39:42.000000Z","updated_at":"2026-11-17T10:20:00.000000Z","seo_title":"GKE Cluster Provisioning & Configuration Guide","seo_description":"Learn how to provision GKE clusters, select Autopilot or Standard mode, and configure cluster settings effectively.","seo_keywords":["GKE cluster provisioning","Autopilot vs Standard GKE","GKE cluster configuration","Private GKE cluster setup","GKE cluster credentials"]}}