# Gke unprotected statefulset

> Gke unprotected statefulset is an open-source agent skill. Audits, detects, and proposes fixes for GKE StatefulSets that lack a matching PodDisruptionBudget (PDB) to prevent simultaneous Pod eviction. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/google/skills/tree/main/skills/cloud/gke-unprotected-statefulset
- **Repository:** https://github.com/google/skills
- **GitHub stars:** 24,379
- **License:** Apache-2.0
- **Skill name:** gke-unprotected-statefulset
- **Collection:** https://github.com/google/skills
- **Listing updated:** 2026-11-17

## About

Audits, detects, and proposes fixes for GKE StatefulSets that lack a matching PodDisruptionBudget (PDB) to prevent simultaneous Pod evictions during voluntary node drains (GKE insight subtype PDB_UNPROTECTED_STATEFULSET). Use when investigating the PDB_UNPROTECTED_STATEFULSET insight, checking whether GKE StatefulSets have a matching PDB, or proposing fixes for selector mismatches where an existing PDB does not match the StatefulSet's .spec.selector. Don't use for existing PDBs that allow zero disruptions or block node drains (PDB_UNPERMISSIVE), general probe and PDB setup unrelated to this insight (use gke-reliability), upgrade planning (use gke-upgrades), Pods stuck in Pending (use gke-workload-troubleshooting), node autoscaling or capacity stockouts (use gke-cluster-autoscaler), ComputeClass configuration (use gke-compute-classes), or general Kubernetes manifest generation (use gke-manifest-generation).

## When your agent uses it

> Audits, detects, and proposes fixes for GKE StatefulSets that lack a matching PodDisruptionBudget (PDB) to prevent simultaneous Pod evictions during voluntary node drains (GKE insight subtype PDB_UNPROTECTED_STATEFULSET). Use when investigating the PDB_UNPROTECTED_STATEFULSET insight, checking whether GKE StatefulSets have a matching PDB, or proposing fixes for selector mismatches where an existing PDB does not match the StatefulSet's .spec.selector. Don't use for existing PDBs that allow zero disruptions or block node drains (PDB_UNPERMISSIVE), general probe and PDB setup unrelated to this insight (use gke-reliability), upgrade planning (use gke-upgrades), Pods stuck in Pending (use gke-workload-troubleshooting), node autoscaling or capacity stockouts (use gke-cluster-autoscaler), ComputeClass configuration (use gke-compute-classes), or general Kubernetes manifest generation (use gke-manifest-generation).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/google/skills/tree/HEAD/skills/cloud/gke-unprotected-statefulset)
- [License: Apache-2.0](https://github.com/google/skills/tree/HEAD/skills/cloud/gke-unprotected-statefulset)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/gke-unprotected-statefulset` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/gke-unprotected-statefulset &&
cp -R "$tmp/skills/cloud/gke-unprotected-statefulset" ~/.claude/skills/gke-unprotected-statefulset &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/gke-unprotected-statefulset` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/gke-unprotected-statefulset` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/gke-unprotected-statefulset &&
cp -R "$tmp/skills/cloud/gke-unprotected-statefulset" ~/.agents/skills/gke-unprotected-statefulset &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/gke-unprotected-statefulset` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/gke-unprotected-statefulset` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/gke-unprotected-statefulset &&
cp -R "$tmp/skills/cloud/gke-unprotected-statefulset" ~/.cursor/skills/gke-unprotected-statefulset &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/gke-unprotected-statefulset` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/google/skills.git --path skills/cloud/gke-unprotected-statefulset
```

Or copy the folder to `~/.gemini/skills/gke-unprotected-statefulset` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/gke-unprotected-statefulset`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/gke-unprotected-statefulset &&
cp -R "$tmp/skills/cloud/gke-unprotected-statefulset" ~/.copilot/skills/gke-unprotected-statefulset &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/gke-unprotected-statefulset` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/google/skills.git
```

Then copy `skills/skills/cloud/gke-unprotected-statefulset` into your agent's skills folder as `gke-unprotected-statefulset`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Gke unprotected statefulset in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/gke-unprotected-statefulset to use it in all your projects, or to .claude/skills/gke-unprotected-statefulset in one project.

### Does Gke unprotected statefulset run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Gke unprotected statefulset?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

---
Source: https://ai-powered.com/skills/gke-unprotected-statefulset
