<< All versions

Skill v1.0.0

currentLLM-judged scan95/100
jpantsjoha/googlecloud-plugin/gke
──Details
PublishedOctober 3, 2026 at 05:52 PM
Content Hashsha256:2be34010924c52af...
Git SHA
──Files
Files (1 file, 2.9 KB)
SKILL.md2.9 KBactive
SKILL.md · 72 lines · 2.9 KB

version: "1.0.0" name: gke description: "Deploy and manage Kubernetes workloads on Google Kubernetes Engine (GKE). Covers Autopilot and Standard modes, Workload Identity, node pool management, networking, security, and gcloud/kubectl CLI patterns. Warns before cluster creation (billable). Use when the user mentions: kubernetes on GCP, create GKE cluster, GKE autopilot, kubectl GCP, GKE networking, GKE security." license: MIT metadata: "googlecloud-plugin/version": "0.1" "googlecloud-plugin/triggers": "GKE, kubernetes on GCP, google kubernetes engine, create GKE cluster, workload identity, node pool, GKE autopilot, kubectl GCP, GKE networking, GKE security" "googlecloud-plugin/required-scopes": "container.clusters.create, container.clusters.delete, container.clusters.get, container.clusters.list, container.clusters.update, container.nodes.list" "googlecloud-plugin/mcp-servers": "google-gke"


GKE — Google Kubernetes Engine

Run Kubernetes workloads with Google's managed control plane. Choose Autopilot (fully managed nodes) or Standard (you manage node pools).

Mode Selection

AutopilotStandard
Node managementGoogleYou
BillingPer pod resourcePer node
Best forOps-light teams, variable loadFine-grained node control

Core Patterns

Create an Autopilot cluster (recommended)

bash
# Billable action — GKE charges per cluster + node resources
gcloud container clusters create-auto CLUSTER_NAME \
--region REGION \
--project PROJECT_ID

Get credentials

bash
gcloud container clusters get-credentials CLUSTER_NAME \
--region REGION \
--project PROJECT_ID

Workload Identity (never use SA key files in pods)

bash
# Annotate the Kubernetes SA to impersonate a GCP SA
kubectl annotate serviceaccount KSA_NAME \
iam.gke.io/gcp-service-account=GSA_EMAIL
# Bind the GCP SA
gcloud iam service-accounts add-iam-policy-binding GSA_EMAIL \
--role roles/iam.workloadIdentityUser \
--member "serviceAccount:PROJECT_ID.svc.id.goog[NAMESPACE/KSA_NAME]"

Safety Rules

  • Always use Workload Identity — never mount SA key files into pods
  • Enable Binary Authorization for production clusters
  • Cost warning: GKE clusters incur cluster management fee + node costs

References

All versions