npx skills add ...
npx skills add google/skills --skill gke-reliability
Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for disaster recovery setup or full cluster backups (use gke-backup-dr instead).
npx skills add google/skills --skill gke-reliability
This reference covers high availability and reliability configuration for GKE clusters and workloads.
MCP Tools:
get_cluster,get_k8s_resource,describe_k8s_resource,apply_k8s_manifest,list_k8s_events
| Setting | Golden Path Value | Notes |
|---|---|---|
| Cluster type | Regional (4 zones: | Control plane replicated across |
| : : us-central1-a/b/c/f) : zones : | ||
| Upgrade strategy | SURGE (maxSurge: 1) | Rolling upgrades with extra |
| : : : capacity : | ||
| Auto-repair | true | Unhealthy nodes replaced |
| : : : automatically : | ||
| Auto-upgrade | true | Nodes follow control plane |
| : : : version : | ||
| Release channel | REGULAR | Balanced freshness and stability |
| Stateful HA | Enabled | Leader election for stateful |
| : : : workloads : |
location is a region (e.g., us-central1), the control plane is
regionallocations has multiple entries, nodes span multiple zonesPDBs ensure minimum pod availability during voluntary disruptions (node upgrades, autoscaler scale-down).
Check existing PDBs:
Create PDB:
Every production Deployment with 2+ replicas should have a PDB.
Every production container should have liveness and readiness probes. Startup probes are recommended for slow-starting apps.
Check existing probes:
Recommended probe configuration:
Ensure applications handle SIGTERM and drain in-flight requests:
Distribute pods across zones and nodes to survive failures:
DoNotSchedule): Hard requirement -- pods must be balanced
across zonesScheduleAnyway): Best-effort -- prefer distribution but
don't block scheduling| Workload Type | Minimum Replicas | Reason |
|---|---|---|
| Stateless web/API | 2 | Survive single pod/node |
| : : : failure : | ||
| Critical services | 3 | Survive zone failure with zone |
| : : : spread : | ||
| Stateful (databases) | 3 (with replication) | Application-level quorum |
| Batch/jobs | 1 | Ephemeral by nature |
initialDelaySeconds, periodSeconds, and timeoutSeconds for all
probes. Never rely on the Kubernetes default timeout of 1 second if your
application requires more, but always set a strict limit to prevent hanging
connections.SIGTERM and set appropriate
terminationGracePeriodSeconds with a preStop sleep hook to allow load
balancer deregistration.gke-upgrades skill).