/devops-skills:kubernetes-storagefrom devops-skills
Covers Kubernetes persistent storage: PersistentVolumes, PersistentVolumeClaims, StorageClasses, dynamic provisioning, access modes, StatefulSets, volume lifecycle, and reclaim policy. Helps debug Pending PVCs, stuck volume attaches, and choose the right access mode.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Kubernetes was designed for stateless, disposable pods, and storage is the layer where that assumption breaks down and has to be bolted back on carefully. A pod can be rescheduled to any node at any time; the volume it depends on has to either follow it there or already be reachable from there — get this wrong and a routine reschedule becomes a data-loss incident.
Treat every PVC as a promise about what happens when the pod above it dies, not just where the bytes live today. The reclaim policy and access mode you pick now decide what happens the day something goes wrong, not the day it's created.
A PVC asks for a certain size, access mode, and StorageClass; the PV that satisfies it is either
pre-provisioned or, more commonly now, dynamically created by the StorageClass's provisioner. A
Pending PVC almost always means no StorageClass/provisioner can satisfy what was asked for —
capacity, access mode, or a zone constraint that doesn't match available storage.
kubectl get pvc <name> # Pending? check events
kubectl describe pvc <name> # provisioning failure reason
kubectl get storageclass # is the referenced class real, and is one default?
storageClassName specified means the PVC has nothing to bind
to — this is a common first-cluster surprise.Done when: every PVC is Bound, or the Pending reason is identified from describe, not
guessed.
ReadWriteOnce (single node), ReadWriteMany (multiple nodes, needs a filesystem-based backend
like NFS/EFS/Filestore), and ReadOnlyMany are not interchangeable, and picking RWX by default
"just in case" often forces a slower, more expensive storage backend than the workload needs.
Done when: the access mode matches a concrete concurrent-access requirement you can name, not the most permissive option by default.
The distinguishing feature of a StatefulSet isn't just stable storage — it's stable network identity and ordered, one-at-a-time rollout. Reach for it specifically when pods are not interchangeable: each replica needs its own persistent volume and a predictable hostname (database nodes, message queue brokers), not just because the workload happens to write data.
volumeClaimTemplates give each StatefulSet replica its own PVC, created and kept as pods are
recreated — replica-2 always reattaches to replica-2's volume, not a random one.Done when: you can state why each replica needs its own identity-bound volume, or you've used a Deployment instead.
Retain, Delete, and (rarely) Recycle decide what happens to the underlying storage when the
PVC is deleted. Most dynamic StorageClasses default to Delete — convenient for ephemeral
workloads, catastrophic if it's silently deleting a production database's volume the moment someone
deletes the wrong PVC.
Delete for anything truly disposable — CI scratch volumes, caches you can rebuild.Retain for anything you cannot regenerate — the volume survives PVC deletion and becomes
Released, requiring manual intervention to reuse or clean up, which is the point: it forces a
human decision instead of an automatic one.backup-and-restore
for actual recovery guarantees.Done when: every StorageClass backing non-disposable data is explicitly set to Retain, and
that decision is documented, not inherited by accident.
When a node fails, Kubernetes reschedules the pod elsewhere, but the volume has to actually be
detachable from the dead node and attachable to the new one — with ReadWriteOnce volumes and some
CSI drivers, this can stall for minutes waiting for a force-detach, which shows up as a pod stuck in
ContainerCreating.
Done when: you know, for the specific CSI driver in use, how long a volume takes to reattach after an ungraceful node failure.
State the StorageClass and access mode chosen and why, whether the workload needed a StatefulSet or
a Deployment sufficed, the reclaim policy set on each class, and any known reattachment delay on
node failure. Call out any PVC still relying on an inherited Delete policy for non-disposable data
— naming that risk is more useful than assuming the default was fine.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.