{"data":{"slug":"github-google-skills-skills-cloud-gke-golden-path-b1aaa2bc02f5","title":"Configure GKE Cluster with Golden Path Defaults","summary":"Sets up a GKE cluster using the recommended golden path configuration for production readiness, ensuring secure and optimized defaults. The deliverable is a configured GKE cluster with secure and optimized settings, suitable for production environments.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-golden-path-b1aaa2bc02f5","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-gke-golden-path-b1aaa2bc02f5","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-golden-path-b1aaa2bc02f5.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-golden-path-b1aaa2bc02f5\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before executing any `gcloud`, REST API, or MCP command, you must read [Usage Attribution](references\/attribution.md). For commands executed directly in the terminal, prefix `gcloud` with `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:gke-golden-path)\"` and append `agent-skills\/1.0 (skill:gke-golden-path)` to `User-Agent` headers.","instructions":"---\nname: gke-golden-path\ndescription: >-\n  Provides GKE golden path configuration defaults, production readiness\n  checklists, and cluster default patterns. Use when designing GKE clusters,\n  verifying GKE production readiness, or checking configurations against\n  GKE defaults. Don't use for setting up workload autoscaling specifically (use\n  gke-workload-scaling instead).\nmetadata:\n  version: \"1.1.1\"\n  category: Containers\n---\n\n# GKE Golden Path Configuration\n\nThe golden path is the recommended Autopilot configuration for production\nclusters. It defines sensible defaults \u2014 when the user requests different\nsettings, apply them and note relevant trade-offs. For setting up autoscaling\nspecifically, use `gke-cluster-autoscaler` for node autoscaling or\n`gke-workload-scaling` for workload autoscaling (HPA\/VPA).\n\n> **MCP Tools:** `get_cluster`, `create_cluster`, `update_cluster`\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-golden-path)\"`\nand append `agent-skills\/1.0 (skill:gke-golden-path)` to `User-Agent` headers.\n\n## Rules\n\n1.  **Default to the golden path.** Use golden path values unless the user\n    requests otherwise. When deviating, note trade-offs but respect the user's\n    choice.\n2.  **Day-0 vs Day-1.** Flag Day-0 decisions (networking, private nodes,\n    subnets, IP allocation) prominently \u2014 they are hard\/impossible to change\n    after creation.\n3.  **Tool preference: MCP > gcloud > kubectl.** MCP is preferred as it directly\n    interfaces with GKE APIs with structured data, reducing shell syntax errors\n    and parsing ambiguities. See the `gke-basics` skill's CLI reference for full\n    coverage matrix and override options. If the user\n    says \"use gcloud\" or \"use kubectl\", respect that for the session.\n4.  **Document decisions and rationale**, especially for Day-0 choices and\n    golden path deviations.\n\n## Required Inputs\n\nIf the user is unsure, use golden path defaults.\n\n-   **Project ID** (required)\n-   **Region** (required, e.g., `us-central1`)\n-   **Cluster name** (required)\n-   **Environment type**: dev\/test or production (defaults to production)\n-   **Networking**: bring-your-own VPC\/subnet or auto-create (default:\n    auto-create)\n-   **Scale expectations**: expected node\/pod count, workload types\n-   **Cost constraints**: Spot VM tolerance, budget considerations\n\n## Always-Apply Defaults\n\nRecommended best practices applied by default. If the user requests a different\nsetting, apply it and briefly note the security or operational trade-off.\n\nSetting                                                            | Golden Path Value\n------------------------------------------------------------------ | -----------------\n`autopilot.enabled`                                                | `true`\n`privateClusterConfig.enablePrivateNodes`                          | `true`\n`masterAuthorizedNetworksConfig.privateEndpointEnforcementEnabled` | `true`\n`secretManagerConfig.enabled` + `rotationInterval: 120s`           | `true`\n`rbacBindingConfig.enableInsecureBinding*`                         | `false` (both)\n`workloadIdentityConfig.workloadPool`                              | enabled\n`networkConfig.datapathProvider`                                   | `ADVANCED_DATAPATH`\n`networkConfig.dnsConfig.clusterDns`                               | `CLOUD_DNS`\n`autoscaling.autoscalingProfile`                                   | `OPTIMIZE_UTILIZATION`\n`verticalPodAutoscaling.enabled`                                   | `true`\n`monitoringConfig` components                                      | SYSTEM_COMPONENTS, STORAGE, POD, DEPLOYMENT, STATEFULSET, DAEMONSET, HPA, JOBSET, CADVISOR, KUBELET, DCGM, APISERVER, SCHEDULER, CONTROLLER_MANAGER\n`loggingConfig` components                                         | SYSTEM_COMPONENTS, WORKLOADS (enabled by default)\n`advancedDatapathObservabilityConfig.enableMetrics`                | `true`\n`nodeConfig.shieldedInstanceConfig.enableSecureBoot`               | `true`\n`nodeConfig.workloadMetadataConfig.mode`                           | `GKE_METADATA`\n`nodeConfig.gcfsConfig.enabled` \/ `gvnic.enabled`                  | `true` \/ `true`\n`addonsConfig.statefulHaConfig.enabled`                            | `true`\nStorage CSI drivers (Filestore, GCS FUSE, Parallelstore)           | enabled\nPod Security Standards                                             | `restricted` on production namespaces\n\n## Customer-Configurable Settings\n\nThese have golden path defaults but customers may deviate with valid\njustification. **Ask before changing.**\n\nSetting                                  | Default                             | Why Deviate\n---------------------------------------- | ----------------------------------- | -----------\n`dnsEndpointConfig.allowExternalTraffic` | `true`                              | Restrict if cluster only accessed from within VPC\n`autoIpamConfig` \/ `createSubnetwork`    | `true` \/ `true`                     | Customer has pre-existing VPC\/subnets\n`maxPodsPerNode`                         | `48` (this golden path's choice)    | Halves per-node IP consumption (\/25 instead of \/24). Not a GKE default (Standard defaults to `110`, Autopilot to `32`); raise for high pod-density at the cost of more CIDR space\n`subnetwork`                             | auto-created                        | Customer brings existing subnets\nRelease channel + maintenance windows    | `REGULAR` channel with a recurring maintenance window | Add targeted maintenance exclusions (keep under ~6 months) only for critical freezes \u2014 see the `gke-upgrades` skill\n`nodeConfig.bootDisk.diskType`           | `pd-balanced`                       | `pd-ssd` for I\/O-intensive, `pd-standard` for cost\n\n> **Note**: Autopilot selects node machine types automatically (e.g.,\n> `ek-standard-8` may appear in describe output); the machine type is not\n> customer-configurable in Autopilot. Steer workload placement via\n> ComputeClasses instead.\n\n## Guardrails\n\n-   Do not request or output secrets (tokens, keys, service account JSON).\n-   Resolve project\/cluster context from the conversation, MCP tools, or\n    `gcloud config get-value project`; ask the user only if it cannot be\n    resolved.\n-   For Day-0 decisions, always ask clarifying questions before proceeding.\n-   For Day-1 features, propose golden path defaults with trade-offs and let the\n    customer confirm.\n-   Do not promise zero downtime \u2014 see Upgrade Disruption below for what to\n    advise instead.\n-   When auditing existing clusters, compare against golden path and report\n    deviations with severity and remediation.\n\n## Upgrade Disruption\n\n**Never promise zero downtime for node upgrades, on any configuration.** Node\nupgrades cordon and drain nodes, which evicts Pods. Draining honors\nPodDisruptionBudgets and `terminationGracePeriodSeconds` for **up to one hour**,\nafter which GKE forcefully evicts the remaining Pods so the upgrade can proceed.\nA PDB narrows the window; it cannot veto the upgrade. Say so plainly rather than\nimplying the disruption can be eliminated.\n\nWhat to recommend, all four \u2014 not a subset:\n\n-   **PodDisruptionBudgets** with `minAvailable` set so eviction cannot take the\n    last healthy replica. A PDB that can never be satisfied stalls the drain for\n    an hour and then loses anyway.\n-   **At least 2 replicas**, spread across zones with topology spread\n    constraints. A single-replica Deployment has downtime by definition.\n-   **Readiness probes** that reflect real serving health, so traffic drains\n    before the Pod dies.\n-   **Surge upgrade settings** on the node pool. Surge is the default strategy;\n    the default is `maxSurge=1`, `maxUnavailable=0` \u2014 one extra node is created\n    and made ready before an old one is drained.\n\n    Setting          | Controls                                            | Default\n    ---------------- | --------------------------------------------------- | -------\n    `maxSurge`       | Additional nodes added per zone during the upgrade  | `1`\n    `maxUnavailable` | Nodes simultaneously unavailable per zone           | `0`\n\n    Nodes upgraded at once is the **sum** of the two, capped at 20 (Autopilot)\n    and 100 (Standard). Multi-zone node pools upgrade one zone at a time. Raising\n    `maxUnavailable` trades availability for speed; raising `maxSurge` trades\n    cost for availability.\n\n> **Caveat**: `externalTrafficPolicy: Local` does not work with parallel node\n> drains, so it constrains aggressive surge configurations.\n\nFor rollback procedures and maintenance windows, see the `gke-upgrades` skill.\n\n## Golden Path Config\n\nSee [golden-path-autopilot.yaml](.\/assets\/golden-path-autopilot.yaml) for the\nfull cluster-level policy settings.\n","use_cases":["Setting up a new GKE cluster for production workloads","Verifying GKE cluster configuration against recommended defaults","Ensuring secure and optimized cluster settings for production environments"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/gke-golden-path\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-17","created_at":"2026-11-16T16:04:29.000000Z","updated_at":"2026-11-17T10:20:00.000000Z","seo_title":"Configure GKE Cluster with Golden Path Defaults","seo_description":"Configure GKE cluster with golden path defaults for production readiness, secure defaults, and optimized performance.","seo_keywords":["GKE cluster configuration","GKE golden path setup","GKE production readiness","GKE cluster defaults","GKE secure configuration"]}}