gke-unprotected-statefulset
БесплатноБез исполняемых скриптовНе проверенAudits, detects, and proposes fixes for GKE StatefulSets that lack a matching PodDisruptionBudget (PDB) to prevent simultaneous Pod evictions during voluntary…
от google★ 25 380 звёзд на GitHubОб этом скилле
GKE unprotected StatefulSet skill
Use this skill to find, verify, and propose fixes for GKE StatefulSet
workloads lacking a matching PodDisruptionBudget (PDB), subtype
PDB_UNPROTECTED_STATEFULSET. Without a matching PDB, voluntary node drains can
take down all Pods at once or drop a stateful app below quorum; a zero-budget
PDB triggers PDB_UNPERMISSIVE, which GKE violates after one hour (see
When GKE identifies workloads with vulnerability to disruption
and "Dealing with disruptions" and "Pod disruption budgets" in
Disruptions).
Read-only rule: Run read-only diagnostic commands only. Never drain, delete, or re-create nodes, create or modify Kubernetes resources, dismiss or change insight or recommendation state, or run any other command that changes the cluster or project. Give the user any fix to apply themselves.
Usage attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, read and
follow Usage Attribution.
Prerequisites
- Google Cloud CLI, APIs, and billing: If
gcloudis missing or uninitialized orcontainer.googleapis.comis disabled, point the user to Before you begin (never enable APIs or install software yourself). Ifrecommender.googleapis.comis disabled, point the user to "gcloud" in Enable the API. The project needs an active Cloud Billing account. kubectland cluster credentials: Ifkubectlor required auth plugins are missing, point the user to "Install kubectl" and "Install required plugins" in Install kubectl and configure cluster access, and use "Store cluster information for kubectl" on that page to configure cluster credentials forkubectl.- IAM roles: Under
Google Kubernetes Engine roles
and
Required roles:
- Kubernetes Engine Viewer (
roles/container.viewer) to configure credentials and read clusters, StatefulSets, PDBs, insights, and recommendations. - Kubernetes Engine Developer (
roles/container.developer) only for the user to create/update PDBs, update/scale StatefulSets, or dismiss recommendations. - Kubernetes Engine Cluster Admin (
roles/container.clusterAdmin) only for the user to configure cluster maintenance windows/exclusions or Standard node-pool maintenance exclusions.
- Kubernetes Engine Viewer (
- Documentation:
- Ensure workloads are disruption-ready (Sections: "Identify workloads with vulnerability to disruption", "When GKE identifies workloads with vulnerability to disruption", "Implement the guidance to improve disruption readiness")
- Optimize your usage of GKE with insights and recommendations (Sections: "Before you begin", "Required roles", "View insights and recommendations", "Dismiss or restore recommendations", "Dismiss recommendations using the Google Cloud CLI")
- Enable the API (Sections: "gcloud")
- Insights (Sections: "Description", "Content", "Target Resources", "State Info", "Severity", "Last Refresh Time")
- Google Kubernetes Engine roles and permissions (Sections: "Google Kubernetes Engine roles")
- Install kubectl and configure cluster access (Sections: "Install kubectl", "Install required plugins", "Store cluster information for kubectl")
- Manage clusters (Sections: "View your clusters")
- Deploying a stateful application (Sections: "Creating a StatefulSet", "Inspecting a StatefulSet", "Updating a StatefulSet", "Scaling a StatefulSet")
- [Node upgrade strategies](https://docs.cloud.google
Установить gke-unprotected-statefulset в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gke-unprotected-statefulset?
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).
Как установить скилл gke-unprotected-statefulset?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gke-unprotected-statefulset запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub