gke-storage-troubleshooting
What it does
This skill diagnoses storage problems for apps running on Google Kubernetes Engine. It is for platform teams whose pods are stuck or whose disks behave badly.
When to use it
- βWhen GKE pods are stuck in ContainerCreating because a volume will not attach or mount.
- βWhen disk performance or node storage pressure is slowing down GKE workloads.
- βWhen a Cloud Storage FUSE mount runs out of memory or a volume expansion fails on GKE.
Skill link
https://github.com/google/skills/blob/main/skills/cloud/gke-storage-troubleshooting/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMy GKE pod has been stuck in ContainerCreating for an hour because its disk will not mount. Why is that happening?β
5 new skills a week. 1 minute to read.
How it works
It gathers the cluster, workload and volume details, then checks events and logs for attach and mount errors. It proposes fixes to manifests and settings for you to review instead of changing live resources.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
GKE Storage Troubleshooting Skill
Use this skill to systematically diagnose and resolve persistent-storage failures for workloads running on GKE β volume attach/mount errors, disk performance and node storage pressure, volume expansion, storage-related cluster/node-pool creation errors, and Cloud Storage FUSE memory issues. This skill operates non-interactively and enforces a read-only diagnostics boundary before proposing manifest or configuration corrections.
For routine storage provisioning and StorageClass/PVC authoring, use the
gke-storageskill instead. This skill focuses on failure diagnosis.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-storage-troubleshooting)"
and append agent-skills/1.0 (skill:gke-storage-troubleshooting) to User-Agent headers.
π Diagnosis & Resolution Workflow
Step 0: Non-Interactive Context Discovery & Dry-Run Fallback
Parameter Extraction: Extract required context (
project_id,cluster_name,cluster_location,workload_name,workload_namespace,pod_name, and the relevantpvc_name/pv_name/node_name) non-interactively from the user prompt, activeSETTINGS.md, or environment defaults:- Default
workload_namespacetodefaultif omitted. - Infer missing cluster parameters from the active environment (
kubectl config current-contextorgcloud config get-value project).
- Default
Cluster Credentials & Fallback Mode:
- Attempt credential fetch:
gcloud container clusters get-credentials {cluster_name} --location {cluster_location} --project {project_id}. - Fallback / Dry-Run Mode: If the cluster is unreachable,
non-existent, or live command execution fails (such as in sandboxed
evaluations, dry-run mode, or offline analysis):
- Limit retry attempts to avoid resource exhaustion and context overflow.
- Immediately present the exact
kubectl/gclouddiagnostic commands for the human operator to run. - Synthesize the root-cause analysis and output the proposed GitOps correction based on the reported symptoms.
- Attempt credential fetch:
Step 1: Classify the Storage Symptom
Gather the primary signals, then jump to the matching branch under Step 2 (Resolution) β you normally perform only the one branch that matches your diagnosis, not all of them.
Diagnostic Commands:
kubectl describe pod {pod_name} -n {workload_namespace}
kubectl get pvc,pv -n {workload_namespace}
kubectl get events -n {workload_namespace} --sort-by='.metadata.creationTimestamp'
kubectl describe node {node_name}
- Pod stuck in
ContainerCreatingwith an attach/mount event β Volume Attach & Mount Failures. - Node-level slowness,
PLEG is not healthy, orStoragePressureDetectedevents β Disk Performance & Node Storage Pressure. - Cluster / node-pool creation or provisioning error β Storage Provisioning & Creation Failures.
- A resized volume is not reflected inside the container β Volume Expansion Not Reflecting in the Container.
- Cloud Storage FUSE Pod / sidecar OOM β Cloud Storage FUSE Out-Of-Memory (OOM) Events.
Step 2: Resolution
Perform only the branch that matches your Step 1 diagnosis. These branches are mutually exclusive alternatives, not sequential steps.
Volume Attach & Mount Failures
Error 400: Cannot attach RePD to an optimized VM: Regional persistent disks are restricted from being used with memory-optimized or compute-optimized machine types.- If a regional PD is not a hard requirement, switch the workload to a non-regional persistent disk StorageClass.
- If a regional PD is required, use taints and tolerations so that Pods needing regional PDs are scheduled onto a node pool that does not use optimized machine types.
**Pods stay
Pending/FailedSchedulingafter a node
FAQ
Does it set up new storage?
No. For routine provisioning and StorageClass or PVC setup, use the gke-storage skill.
Does it change my cluster?
It is read-only while diagnosing and only proposes corrections.
What kinds of errors does it cover?
Regional disk attach problems, fsGroup mount timeouts, Local SSD and Hyperdisk pool errors, and Cloud Storage FUSE memory issues.
Details
Original description by the author
Diagnoses GKE persistent-storage failures β volume attach/mount errors (Regional PD on optimized VMs, fsGroup mount timeouts), disk-performance and node storage-pressure issues, slow-disk Pod-creation failures, volume-expansion problems, Local SSD / Hyperdisk Storage Pool creation errors, and Cloud Storage FUSE OOM. Use when Pods are stuck in ContainerCreating, volumes fail to attach or mount, or nodes report storage pressure. Don't use for routine storage provisioning or StorageClass/PVC authoring (see the gke-storage skill).
repo: google/skills
Popularity
- GitHub stars
- 22k
- Ranking position
- #10298
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
finding-google-skills
22kHelps your agent find the right Google guides for a setup task, such as hosting, databases, storage, sign-in or AI model serving.
gcloud
22kHelps your agent write and check Google Cloud gcloud commands, looking up exact syntax before it runs anything so it does not guess flags.
google-cloud-recipe-auth
22kGuides your agent through Google Cloud identity and access, including how people and services sign in and which permissions they get.
google-cloud-recipe-onboarding
22kWalks a new developer through first steps on Google Cloud, including choosing a project, linking billing, and deploying a first resource.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.