gke-storage-troubleshooting
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…
Install / Use
npx skills add google/skills --skill gke-storage-troubleshootingInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of gke-storage-troubleshooting
gke-storage-troubleshooting scores 95/100 on our quality scale, 167th of 1,937 Development & Engineering skills we index (top 9%).
Its SKILL.md is 14 KB long, well organised into 12 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 2 days ago, so gke-storage-troubleshooting is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
gke-storage-troubleshooting compared with similar skills
All 4 of these similar skills score higher than gke-storage-troubleshooting; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| gke-storage-troubleshooting (this skill)by google | 95 | 20.3k | 2d ago | SKILL.md |
| ai-job-searchby MadsLorentzen | 100 | 44.0k | 4d ago | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 6d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 3d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 3d ago | SKILL.md |
Frequently asked questions
- How do I install gke-storage-troubleshooting?
- Run
npx skills add google/skills --skill gke-storage-troubleshooting. The install tabs above show the steps for each supported agent. - Which AI agents does gke-storage-troubleshooting work with?
- It is written for Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is gke-storage-troubleshooting safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is gke-storage-troubleshooting still maintained?
- The repository was last updated 2 days ago, so gke-storage-troubleshooting is actively maintained.
Skill content
View source on GitHubname: gke-storage-troubleshooting metadata: category: Storage version: "1.1.0" description: >- 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).
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.
🔍 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 pool is moved to a 4th-generation (N4, N4A, N4D) machine series while the workload uses a Persistent Disk StorageClass: N4/N4A/N4D machines do not support Persistent Disk (they support Hyperdisk only), so a PVC bound to apd-*StorageClass cannot bind or schedule on those nodes. Events typically showFailedSchedulingwith a volume node-affinity / topology conflict.- Switch the workload to a Hyperdisk StorageClass (for example
type: hyperdisk-balanced) for the Gen4 node pool. - For existing Persistent Disk volumes, migrate the data to a Hyperdisk volume; the original PD cannot be attached to a Gen4 node.
- If the workload must keep Persistent Disk, keep it on a PD-capable machine series (for example N2) via node selection. This is a machine-type/disk-type incompatibility, not a capacity problem, so increasing disk size or quota does not help.
- Switch the workload to a Hyperdisk StorageClass (for example
-
Hyperdisk Pods become unschedulable when a compute class falls back across VM generations (for example N4 priority, N2 fallback), or one StorageClass must serve mixed generations: a single static disk type in the StorageClass is not compatible with every machine series in the fallback list, so Pods cannot bind their volume on the fallback nodes.
-
Use automated disk type selection: set the StorageClass
parameters.typetodynamicwithhyperdisk-type,pd-type, anddisk-type-preference, plususe-allowed-disk-topology: "true", so GKE selects a compatible disk type per node and schedules Pods only onto nodes that support it. One dynamic StorageClass can then span multiple VM generations (requires the GKE versions noted in the docs).Example dynamic StorageClass (GKE 1.35.3-gke.1290000+):
apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: dynamic-volume provisioner: pd.csi.storage.gke.io volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true parameters: type: dynamic pd-type: pd-balanced hyperdisk-type: hyperdisk-balanced # Preferred storage on nodes that support both PD and Hyperdisk; # defaults to hyperdisk-type when omitted. disk-type-preference: hyperdisk-type # Best practice: schedule Pods only onto nodes that support the disk type. use-allowed-disk-topology: "true"
-
-
Mount stops responding due to the
fsGroupsetting: A Pod configured with asecurityContext.fsGroupon a volume that contains a large number of files makes the kubelet recursively change ownership on every file, which can time out the mount. The symptom is:Unable to attach or mount volumes for pod; skipping pod ... timed out waiting for the conditionConfirm by checking the Pod logs for a
Setting volume ownership for ... and fsGroup setentry, then apply one of:- Reduce the number of files in the volume.
- Set
securityContext.fsGroupChangePolicy: OnRootMismatchso ownership is only changed when the top-level permissions do not match. - Stop using the
fsGroupsetting if it is not required.
Disk Performance & Node Storage Pressure
-
Poor disk performance (symptoms such as
task dockerd:... blocked for more than 300 seconds,PLEG is not healthy, or slowfs: disk usagescans): the node boot disk is shared across the OS, container images, the overlay filesystem, and disk-backedemptyDirvolumes, and performance is shared across all disks of the same type on the node.- This commonly affects nodes using standard persistent disks smaller than 200 GB. Increase the disk size or switch to SSD, especially for production.
- Enable Local SSD for ephemeral storage on node pools whose workloads
frequently use
emptyDir.
-
Slow disk operations cause Pod creation failures: on affected node versions (GKE 1.18–1.23 before the fixed patch releases), the
k8s_node container-runtimelogs showfailed to reserve container name ... is reserved for ...(containerd issue #4604).- Mitigate with
restartPolicy: AlwaysorOnFailurein the PodSpec, and increase boot-disk IOPS (larger disk or a faster disk type). - The permanent fix is containerd 1.6.0+; upgrade to a GKE version that includes it.
- Mitigate with
-
StoragePressureDetected(high node storage pressure): node conditionStoragePressureRootFileSystembecomesTrue(for example,Disk /dev/nvme0n1 usage 89% exceeds threshold 85%), caused by excessiveemptyDirwrites, large image pulls, or accumulating logs.- Identify usage with
df -hon the affected node (focus on/mnt/stateful_partitionand ephemeral mounts). - Remediate by using larger boot disks, adding Local SSDs for ephemeral
storage, setting appropriate
ephemeral-storagerequests/limits, and cleaning up unused files/images/logs.
- Identify usage with
Storage Provisioning & Creation Failures
-
The selected machine type ... has a fixed number of local SSD(s): the Local SSD count specified inEphemeralStorageLocalSsdConfig/LocalNvmeSsdBlockConfigdoes not match the fixed count included with the machine type.- Specify a Local SSD count that matches the machine type. For
third-generation machine series, omit the Local SSD
countflag and the correct value is configured automatically.
- Specify a Local SSD count that matches the machine type. For
third-generation machine series, omit the Local SSD
-
Hyperdisk Storage Pools: cluster or node-pool creation fails with
ZONE_RESOURCE_POOL_EXHAUSTED(or similar Compute Engine resource errors): the target zone lacks capacity for the requested Hyperdisk Balanced disks or machine type.- Select a new zone in the same region that has capacity and where Hyperdisk Balanced Storage Pools are available. Because storage pools are zonal, delete and recreate the pool in the new zone, then create the cluster/node pool there.
Volume Expansion Not Reflecting in the Container
Volume expansion must always be driven through the PersistentVolumeClaim. Editing the PersistentVolume directly can leave the container filesystem on the old size.
-
Keep the modified PersistentVolume object as it is.
-
Edit the PersistentVolumeClaim and set
spec.resources.requests.storageto a value higher than the current PersistentVolume size. -
The kubelet then resizes the PV, PVC, and container filesystem automatically. Verify inside the Pod:
kubectl exec {pod_name} -n {workload_namespace} -- df -h
Cloud Storage FUSE Out-Of-Memory (OOM) Events
If Pods experience high memory use or OOM kills related to the Cloud Storage FUSE CSI driver:
-
Enable CPU/memory snapshots by configuring Cloud Profiler on the Cloud Storage FUSE CSI driver sidecar container.
-
Locate the OOM event in Cloud Logging, filtering by Pod:
jsonPayload.involvedObject.name="{pod_name}" jsonPayload.involvedObject.kind="Pod" OOMKilledIf the sidecar mounter or GCSF
Truncated for display — read the full file on GitHub.
Related Skills
ai-job-search
44.0kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
