/kubernetes-platform-skills:rook-ceph-storage-operationsfrom kubernetes-platform-skills
Deploys and operates Rook-managed Ceph storage on Kubernetes, exposing block (RBD), filesystem (CephFS), and object (RGW/S3) storage as StorageClasses. Use for on-prem persistent storage without cloud disks.
Ships in kubernetes-platform-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.
Rook is a Kubernetes operator that turns raw block devices attached to
cluster nodes into a fully-managed Ceph cluster, then exposes that
cluster's storage back to Kubernetes as ordinary StorageClasses — giving
on-prem or bare-metal clusters the same self-service, dynamically
provisioned persistent storage that cloud providers offer natively via
EBS/Persistent Disk/managed disks. This matters operationally because
Ceph itself is a complex, stateful distributed system (OSDs, monitors,
managers, placement groups, CRUSH maps); Rook's value is collapsing that
operational surface into a handful of Kubernetes CRDs (CephCluster,
CephBlockPool, CephFilesystem, CephObjectStore) that are
declarative and GitOps-friendly, at the cost of still needing to
understand what Ceph is doing underneath when something goes wrong. This
skill covers deploying and configuring Rook-managed Ceph for production
use; validating that the resulting cluster is actually healthy before
depending on it is
rook-ceph-configuration-validation's
job, and comparing this approach against the simpler
longhorn-storage-configuration
alternative is covered there.
CephCluster.ReadWriteMany volumes (shared
filesystem) onto CephFS-backed storage.kubectl/
Helm access with permission to create cluster-scoped CRDs and
privileged DaemonSets (Rook's OSD pods require host-level device
access).Install the Rook operator (Helm, the recommended path):
helm repo add rook-release https://charts.rook.io/release
helm install --create-namespace --namespace rook-ceph rook-ceph rook-release/rook-ceph --version v1.14.9
Confirm the operator pod is Running before proceeding —
kubectl -n rook-ceph get pods -l app=rook-ceph-operator.
Define the CephCluster, specifying node/device selection
explicitly rather than letting Rook opportunistically claim every
unformatted device it finds cluster-wide:
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph
namespace: rook-ceph
spec:
cephVersion:
image: quay.io/ceph/ceph:v18.2.4
dataDirHostPath: /var/lib/rook
mon:
count: 3
allowMultiplePerNode: false
mgr:
count: 2
dashboard:
enabled: true
ssl: true
storage:
useAllNodes: false
useAllDevices: false
nodes:
- name: "worker-1"
devices: [{ name: "sdb" }]
- name: "worker-2"
devices: [{ name: "sdb" }]
- name: "worker-3"
devices: [{ name: "sdb" }]
resources:
osd: { requests: { cpu: "1", memory: "4Gi" }, limits: { memory: "4Gi" } }
mon: { requests: { cpu: "500m", memory: "1Gi" } }
mon.count: 3 (odd, for quorum, same principle as
etcd-backup-restore-and-cluster-health)
is the minimum for production; explicit storage.nodes/devices
avoids Rook accidentally wiping a device that happens to look
unformatted but is actually in use.
Wait for the cluster to reach HEALTH_OK before creating any
pools or StorageClasses on top of it:
kubectl -n rook-ceph get cephcluster rook-ceph -o jsonpath='{.status.ceph.health}'
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph status
(The rook-ceph-tools deployment, deployed separately, provides a
ceph/rbd/radosgw-admin CLI shell inside the cluster — see
rook-ceph-configuration-validation
for the full health-check workflow.)
Create a block pool and StorageClass for RWO block storage (the most common case — databases, most stateful workloads):
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: replicapool
namespace: rook-ceph
spec:
failureDomain: host
replicated:
size: 3
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: rook-ceph-block
provisioner: rook-ceph.rbd.csi.ceph.com
parameters:
clusterID: rook-ceph
pool: replicapool
imageFormat: "2"
imageFeatures: layering
csi.storage.k8s.io/fstype: ext4
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph
reclaimPolicy: Delete
allowVolumeExpansion: true
failureDomain: host ensures the 3 replicas land on 3 different
nodes, not 3 devices on the same node — set to osd only on
single-node test clusters where host-level failure domains are
meaningless.
Create a CephFS shared filesystem when a workload needs
ReadWriteMany (multiple pods, same volume, e.g. a shared media
library or CI cache):
apiVersion: ceph.rook.io/v1
kind: CephFilesystem
metadata:
name: shared-fs
namespace: rook-ceph
spec:
metadataPool: { replicated: { size: 3 } }
dataPools:
- { name: data0, replicated: { size: 3 } }
metadataServer: { activeCount: 1, activeStandby: true }
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: rook-cephfs
provisioner: rook-ceph.cephfs.csi.ceph.com
parameters:
clusterID: rook-ceph
fsName: shared-fs
pool: shared-fs-data0
csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph
csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node
csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph
reclaimPolicy: Delete
Create an object store (S3-compatible RGW) when workloads need an object API rather than a mounted filesystem/block device:
apiVersion: ceph.rook.io/v1
kind: CephObjectStore
metadata:
name: object-store
namespace: rook-ceph
spec:
metadataPool: { replicated: { size: 3 } }
dataPool: { erasureCoded: { dataChunks: 2, codingChunks: 1 } }
preservePoolsOnDelete: false
gateway:
port: 80
instances: 2
Expose it to clients with a CephObjectStoreUser (issues S3
access/secret key pairs stored as a Kubernetes Secret Rook
generates — never hand-write these keys into a manifest):
apiVersion: ceph.rook.io/v1
kind: CephObjectStoreUser
metadata:
name: app-user
namespace: rook-ceph
spec:
store: object-store
displayName: "app-user"
Scale capacity by adding nodes/devices to CephCluster.spec.storage.nodes
rather than replacing the whole cluster — Rook detects the change,
provisions new OSDs, and Ceph's CRUSH algorithm rebalances data
across the expanded device set automatically. Expect a rebalancing
period with elevated I/O; schedule large expansions during
lower-traffic windows.
Set explicit resource requests/limits on mon, mgr, and osd
pods in CephCluster.spec.resources — an OSD pod OOM-killed under
default (unbounded) limits during a rebalance is a common
destabilizing event that's easy to prevent with sane requests.
mon.count at 3 (or 5 for larger clusters) and spread monitors
across failure domains (allowMultiplePerNode: false) — losing mon
quorum is Ceph's equivalent of etcd losing quorum: the whole cluster
stops serving I/O, not just the affected component.failureDomain: host (not osd) for replicated pools in any
multi-node cluster, so a single node failure can't take out multiple
replicas of the same object.replicated.size: 3) for latency-sensitive block
workloads and erasure coding for large, less latency-sensitive object
data — erasure coding is more storage-efficient but has higher
recovery/rebuild cost per failure.spec.dashboard.enabled: true) and wire
its metrics into
prometheus-and-grafana-monitoring-stack
rather than relying only on ceph status run ad hoc during
incidents.rook-ceph-tools pod in every environment running Ceph —
it's the primary interface for the health checks in
rook-ceph-configuration-validation
and for any manual ceph/rbd diagnostic command.reclaimPolicy: Delete surprise someone on a StorageClass
backing genuinely important data — set Retain for pools where an
accidental PVC deletion should not also delete the underlying Ceph
image/data.Symptom: CephCluster never reaches HEALTH_OK; OSD pods are
stuck Pending or CrashLoopBackOff.
Fix: Usually a device selection problem — check
kubectl -n rook-ceph logs -l app=rook-ceph-operator for "no
available devices," which means the specified device already has a
filesystem/partition table Rook won't overwrite by default (by
design, to avoid destroying data). Wipe the device explicitly and
intentionally (sgdisk --zap-all /dev/sdb on the target node, only
after confirming it holds no needed data) before retrying, rather
than changing device selectors to "make the error go away."
Symptom: PVCs using a Rook StorageClass stay Pending indefinitely
with no clear error in kubectl describe pvc.
Fix: Check the CSI provisioner pods
(kubectl -n rook-ceph get pods -l app=csi-rbdplugin-provisioner) for
crash-looping or a missing/misnamed
csi.storage.k8s.io/provisioner-secret-name in the StorageClass —
the CSI secrets are auto-generated by Rook per pool/filesystem and
must match exactly, and a typo here fails silently at the CSI layer
rather than producing an obvious StorageClass-level error.
Symptom: Deleting a CephBlockPool or CephFilesystem also
deletes all the data in it with no confirmation prompt.
Fix: This is a destructive action — Rook honors
preservePoolsOnDelete (object stores) and spec.deletionPolicy on
CephCluster/pool CRDs in more recent Rook versions. Set them
explicitly (preservePoolsOnDelete: true, or a deletion policy of
retain) on any pool holding real data, and always confirm no PVCs
still reference a pool before deleting it — treat pool/filesystem
deletion with the same caution as terraform destroy in
infrastructure-as-code-terraform.
Symptom: A single-node or 2-node test cluster's CephCluster
reports HEALTH_WARN with placement groups stuck undersized or
degraded indefinitely.
Fix: A replicated.size: 3 pool structurally cannot achieve full
health with fewer than 3 failure domains (nodes, if
failureDomain: host) — either add nodes, or explicitly set a lower
replica size (size: 1 or 2) understanding the reduced durability,
for non-production clusters; don't leave production pools configured
for more replicas than the cluster topology can satisfy.
Symptom: OSD pods get OOM-killed repeatedly during a large data
rebalance after adding capacity.
Fix: Default/unset resource limits on osd pods let a rebalance's
memory spike exceed available node memory. Set explicit
resources.osd.limits.memory with real headroom (Ceph's own sizing
guidance scales roughly with OSD count and device size), and consider
throttling recovery (osd_recovery_max_active,
osd_max_backfills in the Ceph config overrides) to spread the
rebalance's resource impact over a longer window instead of pursuing
the fastest possible convergence.
Scenario: Stand up Rook-Ceph across 3 worker nodes each with one free 500GiB block device, then provide both block storage for a PostgreSQL StatefulSet and a shared CephFS volume for a CI artifact cache.
helm repo add rook-release https://charts.rook.io/release
helm install --create-namespace --namespace rook-ceph rook-ceph rook-release/rook-ceph --version v1.14.9
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata: { name: rook-ceph, namespace: rook-ceph }
spec:
cephVersion: { image: quay.io/ceph/ceph:v18.2.4 }
dataDirHostPath: /var/lib/rook
mon: { count: 3 }
mgr: { count: 2 }
dashboard: { enabled: true, ssl: true }
storage:
useAllNodes: false
useAllDevices: false
nodes:
- { name: "worker-1", devices: [{ name: "sdb" }] }
- { name: "worker-2", devices: [{ name: "sdb" }] }
- { name: "worker-3", devices: [{ name: "sdb" }] }
kubectl -n rook-ceph get cephcluster rook-ceph -o jsonpath='{.status.ceph.health}'
# HEALTH_OK
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata: { name: replicapool, namespace: rook-ceph }
spec: { failureDomain: host, replicated: { size: 3 } }
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata: { name: rook-ceph-block }
provisioner: rook-ceph.rbd.csi.ceph.com
parameters:
clusterID: rook-ceph
pool: replicapool
imageFormat: "2"
imageFeatures: layering
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
csi.storage.k8s.io/node-stage-secret-namespace: rook-ceph
reclaimPolicy: Retain
allowVolumeExpansion: true
postgres-pvc.yaml (excerpt): storageClassName: rook-ceph-block,
accessModes: [ReadWriteOnce]. reclaimPolicy: Retain is deliberately
chosen here (not the earlier example's Delete) since this pool backs
a production database — an accidental PVC deletion won't also delete
the underlying Ceph RBD image.
CephFS for the CI cache, mounted ReadWriteMany by multiple concurrent
CI runner pods:
apiVersion: ceph.rook.io/v1
kind: CephFilesystem
metadata: { name: ci-cache-fs, namespace: rook-ceph }
spec:
metadataPool: { replicated: { size: 3 } }
dataPools: [{ name: data0, replicated: { size: 3 } }]
metadataServer: { activeCount: 1, activeStandby: true }
ceph status/OSD placement/PG health before trusting this cluster for production.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
35 skills in this plugin
/cert-manager-tls-automationGuides installing and configuring cert-manager for automated TLS certificate issuance and renewal — Issuers vs. ClusterIssuers, ACME/ Let's Encrypt HTTP-01 and DNS-01 challenges, private-CA issuance, and integration with Ingress-nginx and Istio gateways. Use when a user asks to "automate TLS certificates on Kubernetes," "set up cert-manager with Let's Encrypt," "fix a stuck Certificate that won't become Ready," "use DNS-01 for a wildcard cert," "rotate mTLS certs automatically," or "issue certs from an internal CA."
/cni-networking-calico-flannelGuides choosing and installing a Kubernetes CNI plugin — Calico vs. Flannel — including NetworkPolicy enforcement capability differences, BGP vs. VXLAN/overlay data paths, and IP address management (IPAM) tradeoffs. Use when a user asks to "choose a CNI plugin for Kubernetes," "enable NetworkPolicy enforcement," "set up Calico with BGP peering," "install Flannel," "debug pod-to-pod connectivity across nodes," or "migrate from Flannel to Calico."
/complete-kubernetes-deployment-on-aks-from-scratchSequences a complete, end-to-end AKS deployment from a bare Azure subscription to a production-ready cluster serving a first workload — Azure landing zone prerequisites, AKS cluster and node pool provisioning, Azure CNI (with the Calico/Cilium alternative noted), ingress (Application Gateway Ingress Controller vs. ingress-nginx), cert-manager with Azure DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on AKS from scratch," "set up a new AKS environment end to end," "build a production AKS cluster from a fresh Azure subscription," or "give me the full sequence to go from nothing to a working AKS cluster."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skillsOther plugins' skills for the same job