Spot nodes = 60-90% cheaper, can be preempted; use for fault-tolerant batch
HPA scales Pods; Cluster Autoscaler scales Nodes — both needed for full autoscaling
Private cluster = nodes have no external IPs; traffic via Cloud NAT or Private Google Access
Pod Disruption Budget = minimum available pods during node upgrades/drains
1---2name: gke-kubernetes3description: GKE Kubernetes4---56# GKE Kubernetes78## When to Use9- Designing or troubleshooting Kubernetes workloads on GCP10- Choosing between GKE Autopilot and Standard11- Configuring autoscaling, node pools, and resource limits12- Preparing for GCP Professional Cloud Developer or DevOps Engineer exam1314## Core Jobs1516### 1. Autopilot vs Standard17| Factor | Autopilot | Standard |18|--------|-----------|---------|19| Node management | Google manages nodes | You manage node pools |20| Billing | Per Pod (vCPU + memory) | Per node (whether used or not) |21| Security | Hardened by default | Configurable |22| Best for | Most workloads | Specialized hardware, DaemonSets, GPUs |23| Cost for variable load | Lower (scale to 0) | Higher (min node pool) |2425### 2. Node Pool Design (Standard)26- Separate node pools by workload type (general, GPU, high-memory)27- Use **node taints + tolerations** to route workloads to specific pools28- Enable **Cluster Autoscaler** to scale node pools based on demand29- Use **spot/preemptible nodes** for fault-tolerant batch workloads (60-90% cost savings)3031### 3. Workload Autoscaling32- **HPA (Horizontal Pod Autoscaler)** — scale Pod replicas based on CPU/memory/custom metrics33- **VPA (Vertical Pod Autoscaler)** — adjust Pod resource requests/limits automatically34- **Cluster Autoscaler** — add/remove nodes based on pending pods3536### 4. Workload Identity37- Best practice: bind Kubernetes ServiceAccount to GCP Service Account38- Replaces legacy metadata server credentials (no key files needed)39- Enables fine-grained GCP IAM per workload40- Setup: annotate K8s SA with GCP SA email; bind `roles/iam.workloadIdentityUser`4142### 5. GKE Ingress43- **GKE Ingress (L7)** — HTTP/HTTPS routing; backed by Cloud Load Balancing44- **Gateway API** — newer, more expressive routing (replaces Ingress long-term)45- **Internal Ingress** — routes traffic within VPC only46- Use **BackendConfig** to configure Cloud Armor, CDN, health checks on backends4748## Key Concepts49- **Pod Disruption Budget (PDB)** — minimum available pods during voluntary disruptions50- **Resource quotas** — limit resource usage per namespace51- **Namespace** — logical isolation within a cluster52- **GKE Dataplane V2** — eBPF-based networking (Cilium); enables network policy5354## Checklist55- [ ] Autopilot considered before Standard (unless specific need)?56- [ ] Workload Identity enabled (no service account keys on nodes)?57- [ ] Resource requests and limits set on all containers?58- [ ] HPA configured for variable-load services?59- [ ] Pod Disruption Budgets set for critical workloads?60- [ ] Private cluster (no public IPs on nodes) for sensitive workloads?6162## Output Format63- 🔴 **Critical** — service account key files mounted in pods, no resource limits (noisy neighbor risk)64- 🟡 **Warning** — no HPA for variable-load services, public nodes for sensitive workloads65- 🟢 **Suggestion** — Autopilot for cost efficiency, Workload Identity for all GCP API access6667## Exam Tips68- Autopilot = Google manages nodes, billing per pod (not per node)69- Workload Identity = K8s ServiceAccount ↔ GCP ServiceAccount (no key files)70- Spot nodes = 60-90% cheaper, can be preempted; use for fault-tolerant batch71- HPA scales Pods; Cluster Autoscaler scales Nodes — both needed for full autoscaling72- Private cluster = nodes have no external IPs; traffic via Cloud NAT or Private Google Access73- Pod Disruption Budget = minimum available pods during node upgrades/drains
Run npx skillmds@latest add kienbui1995/gke-kubernetes in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
GKE Kubernetes It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
kienbui1995 (@kienbui1995) published this skill. Their other Agent Skills are listed on their SkillMD profile.