Gke basics

From google/skills · View interactive version

Gke basics is an AI agent skill from the GitHub repository google/skills. 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 (u

How to use this skill

Skill file

GKE Basics & Critical Gotchas

Routing Note: For Workload Identity KSA/GSA setup, use the

gke-workload-identity skill. For cluster security flags

(--database-encryption-key, --security-posture, RBAC, Shielded Nodes,

Binary Authorization), use the gke-platform-security skill. For cluster

upgrades or maintenance windows, use the gke-upgrades skill. For generating

Kubernetes YAML manifests (Deployment, StatefulSet, Service,

HTTPRoute, PodDisruptionBudget), use the gke-manifest-generation skill.

Managed Kubernetes platform on Google Cloud. Defaults to Autopilot mode unless Standard is explicitly required.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you

MUST read Usage Attribution. For commands executed

directly in the terminal (never in generated scripts, Terraform, or user code),

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.

Key Selection Rules: Autopilot vs. Standard

Critical Gotchas & Best Practices

  1. Private Autopilot Clusters:

```bash

gcloud container clusters create-auto CLUSTER_NAME --region=REGION \

--enable-private-nodes \

--enable-private-endpoint \

--enable-master-authorized-networks \

--master-authorized-networks=CIDR_BLOCK

```

  1. Workload Identity (IAM Binding):

gke-workload-identity skill for KSA/GSA setup.

  1. Autopilot Resource Requests:
  1. Cluster Credentials:

```bash

gcloud container clusters get-credentials CLUSTER_NAME --region=REGION --quiet

```

Reference Directory

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.