Preface¶
When building production clusters on GKE, there are many options: Autopilot vs. Standard, private nodes, Workload Identity, monitoring components, Pod density, upgrade strategies, etc. Documentation is scattered, and Agents often provide inconsistent advice. If you want a baseline that “defaults to production best practices” and clearly explains trade-offs when deviating, Google’s GKE Golden Path Configuration (gke-golden-path, metadata version 1.1.0, category Containers) in the google/skills repository is an Agent Skill designed for this scenario.
What is this¶
gke-golden-path provides Agents with GKE golden path configuration defaults, production-ready checklists, and cluster default mode descriptions. The official description specifies the usage boundary: use it when designing GKE clusters, verifying production readiness, or comparing existing configurations against GKE defaults/recommendations; do not use it specifically for workload elastic scaling (use gke-workload-scaling instead). For node autoscaling, use gke-cluster-autoscaler.
The documentation states: the golden path is the recommended Autopilot configuration for production clusters; when users request different settings, the Agent should adopt the user’s choice and explain the relevant trade-offs. The Skill also notes that it can interact with GKE via MCP tools get_cluster, create_cluster, and update_cluster.
Core Features¶
Four Working Rules¶
- Default to golden path: Unless the user requests otherwise; when deviating, explain the trade-offs and respect the user’s choice.
- Distinguish Day-0 and Day-1: Day-0 decisions like networking, private nodes, subnets, and IP allocation are difficult to change after creation and must be highlighted.
- Tool Priority: MCP >
gcloud>kubectl(MCP interfaces directly with GKE APIs and structured data, reducing shell and parsing errors); seegke-basicsfor the complete matrix. If the user explicitly requestsgcloudorkubectl, follow the user for that session. - Record decisions and rationale: Especially for Day-0 choices and reasons for deviating from the golden path.
Required Inputs¶
Use golden path defaults when the user is uncertain. Common inputs include:
- Project ID (Required)
- Region (Required, e.g.,
us-central1) - Cluster name (Required)
- Environment type: dev/test or production (default: production)
- Networking: Bring your own VPC/subnet or auto-create (default: auto-create)
- Scale expectations: Expected number of nodes/Pods, workload types
- Cost constraints: Spot VM tolerance, budget, etc.
Always-Apply Defaults (Excerpt)¶
The following are representative items from the Skill’s “Recommended Default On/Value” list; if the user modifies them, the Agent should briefly explain the security or operational trade-offs.
| Configuration Item | Golden Path Value |
|---|---|
autopilot.enabled |
true |
privateClusterConfig.enablePrivateNodes |
true |
masterAuthorizedNetworksConfig.privateEndpointEnforcementEnabled |
true |
secretManagerConfig + rotationInterval |
Enabled, 120s |
rbacBindingConfig.enableInsecureBinding* |
false (Two items) |
workloadIdentityConfig.workloadPool |
Enabled |
networkConfig.datapathProvider |
ADVANCED_DATAPATH |
networkConfig.dnsConfig.clusterDns |
CLOUD_DNS |
autoscaling.autoscalingProfile |
OPTIMIZE_UTILIZATION |
verticalPodAutoscaling.enabled |
true |
monitoringConfig / loggingConfig |
Documentation lists default enabled components |
advancedDatapathObservabilityConfig.enableMetrics |
true |
Node Shielded Secure Boot, GKE_METADATA, gcfs/gvnic, etc. |
Enabled per table |
| Storage CSI (Filestore, GCS FUSE, Parallelstore) | Enabled |
| Pod Security Standards | restricted for production namespaces |
Refer to the tables within the Skill for the complete list.
Negotiable Items¶
Some items have golden path defaults but can be adjusted with justification; the Skill requires asking before changing. Examples:
dnsEndpointConfig.allowExternalTrafficdefaults totrue; can be tightened if only VPC-internal access is needed.maxPodsPerNodein this golden path selects 48 (reduces IP consumption per node; not GKE global defaults: Standard is often 110, Autopilot is often 32).- Release channel defaults to REGULAR with periodic maintenance windows; critical freezes can reference
gke-upgradesfor maintenance exclusions. nodeConfig.bootDisk.diskTypedefaults topd-balanced;pd-ssd/pd-standardcan be chosen for I/O-intensive or cost-sensitive scenarios.
Under Autopilot, node machine types are automatically selected by the platform (e.g., ek-standard-8 in describe output); customers cannot directly specify machine types. Placement policies are guided via ComputeClasses.
Guardrails and Auditing¶
- Do not request or output secrets, tokens, or service account JSON.
- Resolve project/cluster context from conversation, MCP, or
gcloud config get-value project; ask the user if unresolvable. - Clarify questions for Day-0 before proceeding; propose defaults and explain trade-offs for Day-1, letting the customer confirm.
- Do not promise zero downtime; refer to the following section for upgrade disruption.
- When auditing existing clusters: compare against the golden path, report deviations, severity, and remediation.
Upgrade Disruption (Agents should state facts)¶
The Skill explicitly states: Do not promise zero downtime for node upgrades under any configuration. Upgrades involve cordoning, draining nodes, and evicting Pods; drain respects PDBs and terminationGracePeriodSeconds for up to approximately one hour, after which GKE forcefully evicts to continue the upgrade. PDBs can narrow the window but cannot veto the upgrade.
It is recommended to cover all four points simultaneously (do not mention just a subset):
- PodDisruptionBudgets:
minAvailableto avoid evicting the last healthy replica; PDBs that can never be satisfied will time out after roughly an hour and still fail. - At least 2 replicas, with topology distribution constraints across zones.
- Readiness probes that reflect real service health to facilitate traffic shifting away first.
- Surge upgrades: Default
maxSurge=1,maxUnavailable=0(add a ready node in each zone before draining the old one).
Installation and Enablement¶
The Skill originates from the official Google Agent Skills repository and works with Agents supporting agentskills.io such as Cursor, Codex CLI, and Claude Code. Installation from the repository root is as follows:
npx skills add google/skills
Follow the prompts to select specific Skills (you can select only gke-golden-path or all), target Agents, and installation scope (project or global). If the environment lacks npx, Node.js (including npm/npx) must be installed first.
To update installed Skills:
npx skills update
You can also use the installation entry via skills.sh with the same repository. If the official materials do not distinguish extra configuration steps for different Agents, refer to the interactive results of npx skills add.
Skill source file path:
https://github.com/google/skills/tree/main/skills/cloud/gke-golden-path
Typical Usage¶
This Skill is a SKILL.md that guides Agent behavior, not a standalone CLI. After enablement, common conversational scenarios include:
- Create new production Autopilot cluster: Provide Project ID, Region, Cluster name; Agent fills in defaults according to the golden path and flags Day-0 networking and subnet choices.
- Production readiness check: Compare against Always-Apply and Guardrails, listing missing items (e.g., private nodes, Workload Identity, monitoring components, PSS).
- Audit existing cluster: Pull configuration via MCP
get_cluster(or user-specifiedgcloud), report deviations from the golden path and remediation suggestions. - Upgrade and availability consultation: Answer according to the four recommendations in Upgrade Disruption, avoiding statements like “upgrades are guaranteed to be seamless.”
For node scaling and HPA/VPA details, switch to gke-cluster-autoscaler or gke-workload-scaling; for maintenance windows and version channel details, refer to gke-upgrades; for CLI and MCP coverage, see gke-basics.
Applicable Scenarios and Notes¶
Suitable for: Teams using AI Agents to design or review GKE production clusters, needing unified defaults and security baselines, and wanting Day-0 decisions to be explicitly questioned.
Notes:
- The default path is oriented towards Autopilot production; when coexisting with Standard or heavily customized network architectures, active deviation and recorded trade-offs are required.
- Workload autoscaling is not within this Skill’s scope.
- Depends on Google Cloud MCP; requires an environment configured to call
get_cluster/create_cluster/update_cluster; if the user insists on shell, usegcloud/kubectl. - Versions are based on Skill metadata 1.1.0 and the current
SKILL.mdin the repository; usenpx skills updateto sync after upgrades.
Conclusion¶
gke-golden-path consolidates recommended defaults, checklists, and upgrade talking points for GKE production Autopilot into a single Skill, reducing the problem of “assembling configuration from scratch every time” and inconsistent Agent responses. See google/skills — gke-golden-path for installation and source code.