GKE Golden Path Configuration
The golden path is the recommended Autopilot configuration for production
clusters. It defines sensible defaults — when the user requests different
settings, apply them and note relevant trade-offs.
MCP Tools: get_cluster, create_cluster, update_cluster
Rules
- Default to the golden path. Use golden path values unless the user
requests otherwise. When deviating, note trade-offs but respect the user's
choice.
- Day-0 vs Day-1. Flag Day-0 decisions (networking, private nodes,
subnets, IP allocation) prominently — they are hard/impossible to change
after creation.
- Tool preference: MCP > gcloud > kubectl. See the
gke-basics skill's
CLI reference for full coverage matrix and override options. If the user
says "use gcloud" or "use kubectl", respect that for the session.
- Document decisions and rationale, especially for Day-0 choices and
golden path deviations.
Required Inputs
If the user is unsure, use golden path defaults.
- Project ID (required)
- Region (required, e.g.,
us-central1)
- Cluster name (required)
- Environment type: dev/test or production (defaults to production)
- Networking: bring-your-own VPC/subnet or auto-create (default:
auto-create)
- Scale expectations: expected node/pod count, workload types
- Cost constraints: Spot VM tolerance, budget considerations
Always-Apply Defaults
Recommended best practices applied by default. If the user requests a different
setting, apply it and briefly note the security or operational trade-off.
| Setting |
Golden Path Value |
autopilot.enabled |
true |
privateClusterConfig.enablePrivateNodes |
true |
masterAuthorizedNetworksConfig.privateEndpointEnforcementEnabled |
true |
secretManagerConfig.enabled + rotationInterval: 120s |
true |
rbacBindingConfig.enableInsecureBinding* |
false (both) |
workloadIdentityConfig.workloadPool |
enabled |
networkConfig.datapathProvider |
ADVANCED_DATAPATH |
networkConfig.dnsConfig.clusterDns |
CLOUD_DNS |
autoscaling.autoscalingProfile |
OPTIMIZE_UTILIZATION |
verticalPodAutoscaling.enabled |
true |
monitoringConfig components |
SYSTEM_COMPONENTS, STORAGE, POD, DEPLOYMENT, STATEFULSET, DAEMONSET, HPA, JOBSET, CADVISOR, KUBELET, DCGM, APISERVER, SCHEDULER, CONTROLLER_MANAGER |
loggingConfig components |
SYSTEM_COMPONENTS, WORKLOADS (enabled by default) |
advancedDatapathObservabilityConfig.enableMetrics |
true |
nodeConfig.shieldedInstanceConfig.enableSecureBoot |
true |
nodeConfig.workloadMetadataConfig.mode |
GKE_METADATA |
nodeConfig.gcfsConfig.enabled / gvnic.enabled |
true / true |
addonsConfig.statefulHaConfig.enabled |
true |
| Storage CSI drivers (Filestore, GCS FUSE, Parallelstore) |
enabled |
| Pod Security Standards |
restricted on production namespaces |
Customer-Configurable Settings
These have golden path defaults but customers may deviate with valid
justification. Ask before changing.
| Setting |
Default |
Why Deviate |
dnsEndpointConfig.allowExternalTraffic |
true |
Restrict if cluster only accessed from within VPC |
autoIpamConfig / createSubnetwork |
true / true |
Customer has pre-existing VPC/subnets |
maxPodsPerNode |
48 |
110 for high pod-density (costs more CIDR space) |
subnetwork |
auto-created |
Customer brings existing subnets |
| Maintenance exclusion windows |
configured (NO_MINOR_UPGRADES, 1yr) |
Customer-specific scheduling |
nodeConfig.bootDisk.diskType |
pd-balanced |
pd-ssd for I/O-intensive, pd-standard for cost |
nodeConfig.machineType |
ek-standard-8 (Autopilot) |
Varies by workload; use ComputeClasses |
Guardrails
- Do not request or output secrets (tokens, keys, service account JSON).
- Discover project/cluster context via MCP tools or
gcloud config get-value project — don't ask users to paste project IDs.
- For Day-0 decisions, always ask clarifying questions before proceeding.
- For Day-1 features, propose golden path defaults with trade-offs and let the
customer confirm.
- Do not promise zero downtime; advise PDBs, health probes, replicas, and
staged upgrades.
- When auditing existing clusters, compare against golden path and report
deviations with severity and remediation.
Golden Path Config
See golden-path-autopilot.yaml for the
full cluster-level policy settings.
Source: google/skills → skills/cloud/gke-golden-path/SKILL.md
1---
2name: gke-golden-path
3description: ">- Provides GKE golden path configuration defaults, production readiness checklists, and cluster default patterns. Use when designing GKE clusters, verifying GKE production readiness, or checking configurations against GKE defaults. Don't use for setting up node autoscaling specifically (use gke-scaling instead)."
4category: devops-and-infra
5source_repo: google/skills
6source_path: "skills/cloud/gke-golden-path/SKILL.md"
7source_url: https://github.com/google/skills/blob/HEAD/skills/cloud/gke-golden-path/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/gke-golden-path
10---
11
12
13# GKE Golden Path Configuration
14
15The golden path is the recommended Autopilot configuration for production
16clusters. It defines sensible defaults — when the user requests different
17settings, apply them and note relevant trade-offs.
18
19> **MCP Tools:** `get_cluster`, `create_cluster`, `update_cluster`
20
21## Rules
22
231. **Default to the golden path.** Use golden path values unless the user
24 requests otherwise. When deviating, note trade-offs but respect the user's
25 choice.
262. **Day-0 vs Day-1.** Flag Day-0 decisions (networking, private nodes,
27 subnets, IP allocation) prominently — they are hard/impossible to change
28 after creation.
293. **Tool preference: MCP > gcloud > kubectl.** See the `gke-basics` skill's
30 CLI reference for full coverage matrix and override options. If the user
31 says "use gcloud" or "use kubectl", respect that for the session.
324. **Document decisions and rationale**, especially for Day-0 choices and
33 golden path deviations.
34
35## Required Inputs
36
37If the user is unsure, use golden path defaults.
38
39- **Project ID** (required)
40- **Region** (required, e.g., `us-central1`)
41- **Cluster name** (required)
42- **Environment type**: dev/test or production (defaults to production)
43- **Networking**: bring-your-own VPC/subnet or auto-create (default:
44 auto-create)
45- **Scale expectations**: expected node/pod count, workload types
46- **Cost constraints**: Spot VM tolerance, budget considerations
47
48## Always-Apply Defaults
49
50Recommended best practices applied by default. If the user requests a different
51setting, apply it and briefly note the security or operational trade-off.
52
53Setting | Golden Path Value
54------------------------------------------------------------------ | -----------------
55`autopilot.enabled` | `true`
56`privateClusterConfig.enablePrivateNodes` | `true`
57`masterAuthorizedNetworksConfig.privateEndpointEnforcementEnabled` | `true`
58`secretManagerConfig.enabled` + `rotationInterval: 120s` | `true`
59`rbacBindingConfig.enableInsecureBinding*` | `false` (both)
60`workloadIdentityConfig.workloadPool` | enabled
61`networkConfig.datapathProvider` | `ADVANCED_DATAPATH`
62`networkConfig.dnsConfig.clusterDns` | `CLOUD_DNS`
63`autoscaling.autoscalingProfile` | `OPTIMIZE_UTILIZATION`
64`verticalPodAutoscaling.enabled` | `true`
65`monitoringConfig` components | SYSTEM_COMPONENTS, STORAGE, POD, DEPLOYMENT, STATEFULSET, DAEMONSET, HPA, JOBSET, CADVISOR, KUBELET, DCGM, APISERVER, SCHEDULER, CONTROLLER_MANAGER
66`loggingConfig` components | SYSTEM_COMPONENTS, WORKLOADS (enabled by default)
67`advancedDatapathObservabilityConfig.enableMetrics` | `true`
68`nodeConfig.shieldedInstanceConfig.enableSecureBoot` | `true`
69`nodeConfig.workloadMetadataConfig.mode` | `GKE_METADATA`
70`nodeConfig.gcfsConfig.enabled` / `gvnic.enabled` | `true` / `true`
71`addonsConfig.statefulHaConfig.enabled` | `true`
72Storage CSI drivers (Filestore, GCS FUSE, Parallelstore) | enabled
73Pod Security Standards | `restricted` on production namespaces
74
75## Customer-Configurable Settings
76
77These have golden path defaults but customers may deviate with valid
78justification. **Ask before changing.**
79
80Setting | Default | Why Deviate
81---------------------------------------- | ----------------------------------- | -----------
82`dnsEndpointConfig.allowExternalTraffic` | `true` | Restrict if cluster only accessed from within VPC
83`autoIpamConfig` / `createSubnetwork` | `true` / `true` | Customer has pre-existing VPC/subnets
84`maxPodsPerNode` | `48` | `110` for high pod-density (costs more CIDR space)
85`subnetwork` | auto-created | Customer brings existing subnets
86Maintenance exclusion windows | configured (NO_MINOR_UPGRADES, 1yr) | Customer-specific scheduling
87`nodeConfig.bootDisk.diskType` | `pd-balanced` | `pd-ssd` for I/O-intensive, `pd-standard` for cost
88`nodeConfig.machineType` | `ek-standard-8` (Autopilot) | Varies by workload; use ComputeClasses
89
90## Guardrails
91
92- Do not request or output secrets (tokens, keys, service account JSON).
93- Discover project/cluster context via MCP tools or `gcloud config get-value
94 project` — don't ask users to paste project IDs.
95- For Day-0 decisions, always ask clarifying questions before proceeding.
96- For Day-1 features, propose golden path defaults with trade-offs and let the
97 customer confirm.
98- Do not promise zero downtime; advise PDBs, health probes, replicas, and
99 staged upgrades.
100- When auditing existing clusters, compare against golden path and report
101 deviations with severity and remediation.
102
103## Golden Path Config
104
105See [golden-path-autopilot.yaml](./assets/golden-path-autopilot.yaml) for the
106full cluster-level policy settings.
107
108---
109
110**Source:** [`google/skills`](https://github.com/google/skills) → `skills/cloud/gke-golden-path/SKILL.md`