Kubernetes storage with Rook and Ceph

Rook runs Ceph as Kubernetes-native storage for block, file and object workloads, or connects to a Ceph cluster you already operate. This page covers which model fits, how to size it and where projects go wrong.

On this page

Kubernetes storage with Rook and Ceph: what the integration does

A team that needs persistent block, shared file and S3-compatible object storage for Kubernetes, in infrastructure it controls, has two broad options. Rook manages Ceph on Kubernetes and exposes its storage to workloads through CSI, so pods claim volumes the same way they claim any other persistent storage. The decision is whether that Ceph cluster runs inside the Kubernetes cluster or is a separate, external Ceph cluster that Kubernetes consumes through Rook's connection to it.

Ceph's source is licensed under LGPL-2.1 or LGPL-3, according to the COPYING file in the Ceph repository, and some bundled components carry other licenses, so legal review should cover the full dependency set rather than the headline license alone. The project itself offers no paid edition, which means the software cost is zero, and the recurring costs sit in hardware, operations and any support contract a team buys from a vendor or partner. The Ceph COPYING file is the place to confirm the license terms that apply to the release you plan to run.

The CNCF lists Rook as a Graduated project since October 7, 2020, which is the maturity level teams usually check first when a storage layer will hold stateful data. Graduation does not replace your own testing of failure handling, upgrades and capacity behavior on your hardware. Confirm with your Rook and Ceph versions which storage features and Kubernetes versions they support before you commit to a design, since the Ceph release line and the Kubernetes release line move on separate schedules.

What you need before deploying Rook and Ceph

Rook runs Ceph inside your Kubernetes cluster, so the platform, the hardware and the Ceph release all have to be settled before the first OSD is created. The cards below cover the items that are hardest to change later and the checks to complete before any storage is promised to workloads.

A Kubernetes version the project supports

Confirm that your cluster runs a minor release still maintained by the Kubernetes project, and plan upgrades within the version skew rules. Check the current Kubernetes release list before choosing a version, because a cluster that falls out of support leaves the storage layer on an unmaintained base. Also confirm that the Rook release you plan to use supports that Kubernetes version.

Kubernetes releases

Rook compatibility with your Ceph release

Confirm Rook compatibility with the Ceph release before you choose it. Rook supports a specific set of Ceph versions per release, and that matrix changes over time. Record the Rook version, the Ceph image tag and the Kubernetes version together in your build notes so that later upgrades start from a known-good combination.

Tentacle or Squid as the Ceph release

Choose between the two actively maintained Ceph releases. Tentacle is the newer line and has the longer estimated support window, while Squid is closer to its estimated end of life and will need an upgrade sooner. A new deployment should normally start on the release with the longest remaining support, and you should plan the next major upgrade before go-live.

Tentacle estimated end of life
June 1, 2027
Squid estimated end of life
October 31, 2026
Ceph active releases

Dedicated drives and metadata SSDs

Give each OSD its own dedicated drive and do not share drives with the operating system or other workloads. If your OSDs are HDD-based, plan shared SSDs for the WAL and DB, and use enterprise-class SSDs for metadata. Ask your hardware vendor which drives have power-loss protection, because consumer drives are a common cause of poor write performance and data risk.

Bonded network links across two switches

Bond network links on each storage node and spread the bond across two switches so that a single switch failure does not isolate storage nodes. Separate replication traffic from client traffic where your network allows it. Test the failover path before go-live by pulling one link and one switch in a maintenance window, and confirm that OSDs stay up.

Memory sized for peak use

Size node memory for peak load, such as recovery and rebalancing after a failed disk, rather than for quiet periods. Ceph's own hardware guidance says to benchmark before buying because no two clusters behave the same. Ask your team to run a benchmark on representative hardware, and treat the result as the basis for the purchase rather than vendor sizing tables alone.

Ceph hardware recommendations

Running Ceph inside the cluster or connecting to an external cluster

With Rook, Ceph daemons (monitors, managers, OSDs, metadata servers and the RADOS Gateway) run as Kubernetes workloads, and Rook's operator reconciles them from custom resources. With an external cluster, Ceph is deployed and run outside Kubernetes, and the cluster consumes it through the Ceph CSI drivers and the connection details that the Rook operator can import. The Ceph project's own deployment tool, cephadm, manages Ceph as containers on hosts it controls and is the Ceph-native path. Its documentation points to Rook as the alternative for Kubernetes, so the choice is less about which software is correct and more about where the storage lifecycle should live.

  • Inside the cluster: Storage daemons share the Kubernetes scheduler, upgrade mechanics and node lifecycle with your workloads.
  • External cluster: Ceph has its own hosts, operators and maintenance windows, and Kubernetes consumes it as a client.
  • cephadm: The Ceph-native way to bootstrap and manage the cluster on hosts, without Kubernetes.
  • Rook: The Kubernetes-native way to run Ceph, listed by the CNCF as a Graduated project since October 7, 2020.
  • Confirm first: Which Ceph release line you will run (Tentacle or Squid) and whether that release is supported by the Rook version you choose.

Before choosing, check the Rook and Ceph compatibility matrices for the exact versions you plan to run.

How Rook, Ceph and Kubernetes fit together

The diagram starts with workloads in the Kubernetes cluster requesting volumes through the CSI drivers, which the Rook operator serves by managing the Ceph daemons as containers. Ceph monitors and managers coordinate the cluster, OSDs store the data on dedicated drives, and the RGW gateway serves S3-compatible object requests. The lower subgraph shows the external option, where the same CSI path reaches a Ceph cluster run outside Kubernetes. The dashed network boundary separates storage traffic from workload traffic, so check that the storage network is isolated and bonded across switches before you size the cluster.

Rook manages Ceph daemons inside the cluster, while CSI can also reach an external Ceph cluster.

Deploying Rook-managed Ceph in sequence

This sequence takes a set of prepared nodes to a Rook-managed Ceph cluster that serves block, file and object storage to Kubernetes, with each layer checked before the next one depends on it. The order matters because pools, StorageClasses and the object gateway all rely on a healthy Ceph cluster underneath.

  1. Prepare nodes, drives and networks

    The platform or storage engineer confirms that each storage node has a dedicated drive per OSD, that any WAL and DB devices sit on shared SSDs for HDD-based OSDs, and that metadata pools have enterprise-class SSDs. Network links should be bonded across two switches, and memory should be sized for peak use rather than calm periods. Before the cluster is built, benchmark the hardware, since the Ceph hardware recommendations note that no two clusters are alike. The step is done when every node reports the expected drives and network paths, and the benchmark results are recorded against the planned workload.

  2. Deploy the Rook operator

    Install the Rook operator into the Kubernetes cluster that will consume storage, using the version that matches the Ceph release you plan to run. Confirm which Ceph release is current for your target before choosing a version, since the Ceph releases page lists the actively maintained branches and their end-of-life dates. Rook is a Graduated CNCF project, so confirm its current support matrix with the Rook documentation before you pin versions. The step is done when the operator pod is running and its logs show no reconcile errors.

  3. Define the CephCluster with failure domains

    Create the CephCluster resource with the planned monitors, managers, OSD devices and placement rules. Set the CRUSH failure domain (host, rack or zone) to match the physical layout, because replicas are only as safe as the domains they are spread across. Decide whether the cluster is hyperconverged, running Ceph daemons on worker nodes, or dedicated storage nodes, and document the trade-off for your team. The step is done when the cluster reports HEALTH_OK, or the only warnings are ones you have reviewed and accepted, and every expected OSD is up and in.

  4. Create block, file and object pools

    Define the CephBlockPool, CephFilesystem and CephObjectStore resources with replication or erasure coding settings chosen for each workload. Keep replication size and failure domain consistent with the CephCluster design, and record which pools hold metadata and which hold data. Confirm the pools report active and clean placement groups after creation. The step is done when each pool appears in the Ceph status output with the expected replica settings, and no placement groups are stuck in a degraded state.

  5. Create StorageClasses and test PVC binding

    Create one StorageClass per storage type, block (RBD), shared file (CephFS) and object access through a bucket class, and set reclaim policy and volume expansion to match the data's lifecycle. Then create a small test PersistentVolumeClaim for each class, mount it in a test pod, write data, and delete the pod and claim. The step is done when each test claim reaches Bound, the pod reads back the written data, and the cleanup removes the backing images or subvolumes without leftover objects in Ceph.

  6. Enable the Ceph Object Gateway

    Deploy the RGW service through the CephObjectStore and confirm that the S3-compatible endpoint is reachable from the cluster network and, where needed, through your ingress. Decide early how users and buckets are authenticated, since the Object Gateway supports several methods and some need configuration before go-live. Test with a standard S3 client, creating a bucket, uploading an object and downloading it. The step is done when the gateway pods are ready, the endpoint answers, and a round trip of an object succeeds from a test workload.

  7. Set up monitoring and alerting

    Enable the Ceph manager metrics exporter and connect it to your Prometheus stack, then build dashboards and alerts for cluster health, OSD state, capacity, latency and placement group status. Set alerts for near-full conditions and degraded placement groups, and route them to the team that will act on them. Review the Ceph Dashboard access model and its single sign-on options if operators will use it. The step is done when the alert rules fire in a controlled test, such as a scaled-down OSD in a non-production cluster, and the dashboards show the expected values.

How to size Ceph and choose failure domains

Start sizing from the OSD layout, because it determines almost everything else. Ceph's hardware recommendations advise a dedicated drive per OSD, so every OSD has its own failure and performance boundary. On HDD-based OSDs, move the write-ahead log (WAL) and the RocksDB metadata (DB) onto shared enterprise-class SSDs, since metadata latency is what most often makes spinning-disk clusters feel slow. Ask your Rook configuration owner how the storageClassDeviceSets or node device selection will map drives to OSDs and where WAL and DB partitions will land, and confirm that the SSD-to-HDD ratio leaves no single SSD carrying more OSDs than you can afford to lose at once. Memory belongs in the same review. The hardware recommendations say to size memory for peak use rather than calm periods, which means planning for recovery and rebalancing traffic, not steady-state reads.

Failure domains set what the cluster survives. The CRUSH map decides how replicas or erasure-coded chunks are spread, and the chosen level (host, rack or site) defines the largest failure that still leaves data available and writable. A host-level domain protects against a node loss but not a rack power event. A rack-level domain needs enough racks to place every replica in a different one, and a site-level domain needs a second site with its own monitors and network path. Rook exposes this through the CRUSH failure domain in the pool specification, so the decision belongs in the design review, not after the pool is created. Also plan the network: the hardware recommendations advise bonding links across two switches, so a single switch failure does not partition the OSDs from their peers.

Do not size from generic numbers. Benchmark the hardware with a workload that resembles your own block, file or object traffic, including the mix of reads and writes, object sizes and client concurrency, and rerun the test after any change to drives, network or replication settings. Measure recovery time as well as steady-state throughput, because a node failure will trigger backfill while applications keep writing. Record the results alongside the failure domain you chose, so the people who approve the purchase can see which failures the design tolerates and at what performance cost. Confirm the current release and its support window in the Ceph active releases page before you commit to a version for the build.

Mapping Kubernetes storage needs to Ceph services

This table maps each common Kubernetes workload pattern to the Ceph service that fits it, the Kubernetes object that requests it and the authentication source to confirm. Read each row as a decision: find the workload, then check the service, access mode and identity path before writing StorageClass or bucket policy. The main takeaway is that the access mode a workload needs decides the Ceph service, and RGW identity needs a separate design from block and file access.

Workload needCeph service and Kubernetes objectAccess and identity to confirm
Databases needing ReadWriteOnce block volumesRBD block images through a Rook-managed CephBlockPool and a block StorageClassAccess is per pod on one node at a time. Confirm the pool replication or erasure coding setting and whether the database runs its own replication.
Shared content needing ReadWriteMany file accessCephFS through a CephFilesystem and a CephFS StorageClassMultiple pods across nodes mount the same filesystem. Confirm the CephX client keys each StorageClass uses and which namespaces may reference them.
Backups and build artifacts needing S3-compatible object storageCeph Object Gateway (RGW) through an object store and an ObjectBucketClaim or bucket userApplications use S3 credentials issued for a bucket user. Confirm whether RGW will use local users, Keystone or LDAP for human and service identities.
Teams needing Keystone-based identity for object accessRGW configured to validate tokens against KeystoneConfirm that the OpenStack identity service in use is reachable from RGW and that project and role mappings match your access model. Check this with the OpenStack team before design.
Teams needing LDAP-based identity for object accessRGW configured with LDAP authenticationConfirm directory group mappings to buckets and whether service accounts exist for backup jobs. Test revocation, since bucket credentials can outlive a directory change.
Workloads needing object storage from outside the clusterRGW endpoint exposed through an ingress or load balancer you runConfirm TLS certificate management, the endpoint hostname and which network segments may reach the gateway.
Consumers that need to be separated by tenantSeparate CephBlockPools, CephFilesystems or RGW users per tenantConfirm which StorageClass each namespace may use and whether quotas on claims are enforced through Kubernetes resource quotas.

Securing the storage network and access

Ceph storage carries application data, so the network path, the gateways and the Ceph management interfaces each need their own controls. The cards below cover encryption on the messenger, authentication on the object gateway, single sign-on for the dashboard and how Kubernetes workloads obtain Ceph credentials. Confirm each setting against the Rook and Ceph versions you plan to run before you rely on it.

Encrypt the messenger with msgr2 secure mode

Ceph daemons talk to each other and to clients over the messenger v2 protocol on port 3300. Secure mode encrypts all traffic after authentication with AES-GCM and adds integrity checks, which protects replication and client I/O that cross pod networks or shared switches. Decide whether the whole cluster uses secure mode, then test that every client, including any external Ceph cluster connected from Kubernetes, negotiates it. Confirm the exact setting names and default behavior for your release.

Messenger v2 docs

Authenticate object gateway users

The Ceph Object Gateway offers S3 and Swift APIs with several authentication options, including Keystone and LDAP, plus multi-factor authentication and Open Policy Agent integration. Pick one identity source for each user population and document which one applies to bucket owners, service accounts and applications. Multi-factor authentication depends on how your identity provider and gateway are wired, so confirm the method and its limits with a test login before go-live.

Object Gateway docs

Single sign-on for the Ceph dashboard

The Ceph Dashboard supports SAML 2.0 for single sign-on. OAuth2 is available when cephadm runs the Management Gateway and OAuth2 Proxy services. Choose the protocol that matches your identity provider, then restrict dashboard roles so storage administrators, read-only auditors and application owners get different access. Confirm which option is supported in your Ceph release and deployment method, since the dashboard has no Kubernetes-native login path by default.

Dashboard docs

Limit Kubernetes access to Ceph credentials

CSI drivers and workloads need Ceph keys, and a leaked key can expose pools across namespaces. Create separate Ceph users with narrow capabilities for each StorageClass or tenant, store those keys only in Kubernetes Secrets that RBAC restricts, and avoid granting list or watch on Secrets to broad groups. Kubernetes stores Secrets unencrypted in etcd by default, so enable encryption at rest for the cluster before relying on these keys.

Plan key handling and rotation

Rotating Ceph keys and the Kubernetes secrets that carry them is the step most often skipped during rollout. Define who owns each key, how often it rotates, how the Rook operator picks up a changed secret and how consumers restart safely. Where keys must live in a central store, the Secrets Store CSI Driver or External Secrets Operator can supply them. Confirm with your security team whether encryption at rest uses a local key or an external KMS, and confirm that behavior against your chosen Rook and Ceph versions.

Common Rook and Ceph failures and how to fix them

This table lists the failures that most often slow or degrade Rook-managed Ceph storage, with the cause and fix for each. Read it before sizing a cluster and again during acceptance testing, since most of these problems are easier to prevent in the design than to repair in production. The main takeaway is that placement, device layout, memory and network bonding are design decisions that need to be made before the first OSD is created.

FailureLikely causeFix
Degraded placementFewer failure domains (hosts, racks or zones) than the replica or erasure-coding profile requires, so CRUSH cannot place every copySize the failure domain map before deployment, confirm the CRUSH rule spreads copies across the domain you intend, and add domains before adding capacity
Slow OSDsWAL and DB for several HDD-based OSDs placed on one shared SSD, which becomes a bottleneck and a shared point of failureUse a dedicated DB and WAL device layout per the hardware recommendations, keep the SSD count and OSD ratio within what the device can serve, and benchmark before buying
Memory pressure on OSD hostsMemory sized for calm periods rather than recovery and peak load, so rebuilds push OSDs and co-located workloads into contentionSize memory for peak use including recovery, and keep Ceph daemons and application pods on separate resource limits so one cannot starve the other
Recovery stallsNetwork links not bonded across two switches, so a single link or switch fault slows replication and backfill for the whole clusterBond links across two switches as the hardware recommendations advise, and test failover of each link while the cluster is under load
StorageClass misconfigurationWrong pool, replication or erasure-coding settings, or a reclaim policy and volume binding mode that do not match how the application writes dataReview each StorageClass against the intended pool and failure domain before workloads use it, and document which class suits block, file and object needs
Unplanned loss of a single hostReplicas or chunks sharing a host or rack because the CRUSH map was not reviewed after nodes were addedCheck the CRUSH map after every host or rack change and confirm that a single host loss leaves the data available at the required replica count
Upgrade stallsRunning an end-of-life release or skipping release steps during an upgrade, with no tested rollbackTrack the active release lines and their end-of-life dates, upgrade through supported steps in a non-production copy first, and confirm the upgrade plan with your Rook and Ceph versions

Questions buyers ask before running Ceph on Kubernetes

What drives the cost of running Ceph under Kubernetes?

The main cost drivers are the storage hardware, the staff time to design and operate the cluster, and the Ceph expertise your team needs to keep it healthy. Hardware is largely one-time spend, but drives, SSDs, network switches and spare capacity for failures recur as you grow. Staff time is both one-time (design, build, benchmarking, migration) and ongoing (upgrades, capacity planning, incident response). The Ceph hardware recommendations advise benchmarking before buying because no two clusters behave alike, so ask any partner to include benchmarking in the written scope and to show how its results feed the hardware list. Ask for each cost category to be quoted separately so you can see what you pay for and what you keep.

Can our team run Ceph on Kubernetes without outside help?

Yes, many teams do, provided they have people who understand storage failure modes, network design and Kubernetes operators. Rook automates much of the Ceph lifecycle, but it does not remove the need to plan failure domains, size memory for peak use, or recover from a degraded cluster. Honest self-assessment matters more than the tooling. If nobody on your team has run distributed storage in production, the first failure is usually where the gaps show. An outside partner can design and build the cluster, document it, and train your staff, while your team keeps operating it. Whichever route you take, confirm that at least two people can respond to a storage incident.

What does DeployOpen need from our team for a Ceph engagement?

A Ceph build depends on access and decisions that only your organization can provide. Expect to supply:

  • Hardware access or a clear specification for the nodes, drives and SSDs that will hold OSDs, WAL and DB devices
  • Network design input, including bonded links across two switches and the separation of client and replication traffic
  • A named owner on your side who approves the design, accepts the failure domain choices and signs off on the acceptance tests
  • Access to the Kubernetes clusters, namespaces and storage classes that will consume the storage

DeployOpen plans, implements, documents and supports self-hosted platforms inside your infrastructure, so these items should be confirmed in the written scope before work starts.

How long does a Ceph on Kubernetes project take?

Duration depends on scope: the number of clusters, the mix of block, file and object services, the hardware lead time, whether you are migrating existing data, and how much benchmarking is required. No duration is stated here because it is not supplied as a researched fact. Fixed-scope engagements agree deliverables and timelines in writing before work starts, so ask for a timeline that lists each milestone, the owner of each dependency (especially hardware delivery and network changes) and the acceptance tests that close the project. A realistic plan also reserves time for staff training and for a rehearsed failure test.

When is an external Ceph cluster cheaper than running Ceph inside Kubernetes?

An external Ceph cluster is often the better path when storage is shared across several platforms, such as virtual machines, OpenStack and Kubernetes, or when a storage team already operates Ceph with its own monitoring, upgrades and on-call. Running Ceph inside the cluster makes sense when the storage exists to serve that one cluster and the team wants a single lifecycle. The cost difference comes from duplicated hardware and staff, not from the software, which is the same LGPL-licensed Ceph either way. Compare the two options on total operating effort across all consumers, not only on the first build.

How do failure domains and sizing affect what we buy?

Failure domains decide how much hardware you need to survive a loss of a node, rack or switch. CRUSH rules spread replicas across the domains you define, so a cluster with too few hosts or racks cannot place data safely after a failure. Sizing should account for capacity lost during recovery, memory sized for peak use rather than calm periods, a dedicated drive per OSD, and shared SSDs for WAL and DB on HDD-based OSDs. Ask for the failure domain model in writing and check that it survives the loss of your largest domain at your expected fill level.

What security controls should we check in a Ceph design?

Start with the controls your auditors will ask about. Confirm that the messenger v2 secure mode is enabled, since it encrypts post-authentication traffic with AES-GCM and adds integrity checks, and that the Ceph Dashboard uses SAML 2.0 or OAuth2 single sign-on where it is exposed. Check who can create pools and access keys, how RADOS Gateway users authenticate, and how Kubernetes access to StorageClasses is limited with RBAC. Plan encryption at rest for the drives and backup or replication for critical pools, then document the evidence for each control so your compliance team can review it. DeployOpen prepares systems and evidence for compliance assessments, but independent auditors issue any audit result.

Can we confirm the Ceph release and support timeline before we commit?

Yes. Check the Ceph releases page before you choose a version. The supplied facts list Tentacle (20.2.x) and Squid (19.2.x) as the actively maintained releases, with estimated end-of-life dates for each. Those dates are estimates, so confirm them on the releases page at the time of your decision. Plan your upgrade path before the build starts, because a Ceph version that reaches end of life during your storage lifetime creates a forced migration. Ask any partner how upgrades will be tested, rolled out and rolled back, and whether the scope includes them or they are offered as a retainer.

How DeployOpen scopes and supports Rook and Ceph

DeployOpen plans, builds, documents and supports Rook-managed Ceph storage inside the infrastructure you control, whether Ceph runs in the cluster or as an external cluster. Work starts with a written scope that settles the storage design, failure domains and access model before any hardware or software is touched.

How we scope

  • Written scope covering block, file and object storage needs, the consuming workloads and which storage classes they require
  • Decision record on running Ceph inside the cluster or connecting to an external Ceph cluster, with the reasons stated
  • Sizing inputs, failure domain layout and hardware list agreed before procurement, with benchmark steps for your own hardware

How we build

  • Deployment of the Rook operator, CephCluster, pools, StorageClasses and object store according to the agreed design
  • Network design with bonded links across two switches, separated public and cluster networks, and msgr2 secure mode where the design requires it
  • Testing of OSD, node and rack failure, pool replacement and client reconnection, with results recorded against the scope

How we hand over

  • Runbooks for adding OSDs, replacing failed drives, expanding capacity and planning Ceph release upgrades
  • Documented identity integration for the Ceph Dashboard and Object Gateway access, with the configuration your team owns
  • Handover session with your platform and storage engineers and a list of items left for your team to confirm in your environment

How we support

  • Fixed-scope engagements with deliverables and timelines agreed in writing before work starts
  • Ongoing support, Ceph upgrades and continuous testing available as a retainer
  • Retesting after capacity changes, hardware swaps or Ceph release upgrades, scoped in advance

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.