Replicated Kubernetes Storage with Rook and Ceph

Run the storage under your stateful workloads: Rook operating a Ceph cluster that keeps three copies of every block on three machines, block and shared file volumes through CSI, snapshots before risky changes, fencing before a lost machine's volume moves, input/output limits for noisy jobs, and quotas with alerts. Ten drills reproduce real failures on four EC2 machines you build and destroy with Terraform, and a write probe measures every lost write and pause.

Kubernetes Engineer. Advanced.

What you will build and explain

  • Explain how Ceph places and acknowledges a write, and predict what happens to writes when one or two OSDs stop.
  • Describe a Ceph cluster with Rook's objects and say why each setting is there, including the network fencing depends on.
  • Give a database a block volume that follows its Pod, and several machines one shared file system with a safe claim protocol.
  • Drain a storage machine safely, replace a failed disk and watch Ceph rebuild the missing copy.
  • Move a volume off a lost machine only after fencing it, and check that the fence names the address the storage sees.
  • Undo a bad change from a snapshot without losing newer writes, limit a noisy job, and catch storage running out with quotas and alerts.
  • Measure each failure as lost writes and pause lengths, and say what the measurement does not prove.

Before you begin

  • Write and apply Deployments, StatefulSets, Services, ConfigMaps, Secrets and PersistentVolumeClaims, and read kubectl get, describe, logs and events output.
  • Use a Linux shell with sudo, systemctl, journalctl and lsblk; run SQL in psql; read Python, YAML and HCL.
  • Run terraform init, plan, apply and destroy against an AWS account you are signed in to. Ceph, Rook, CSI, snapshots, fencing, disruption budgets for storage and kubeadm are taught here.
  • An AWS account where you may create a VPC, EC2 instances and volumes, IAM roles and an S3 bucket, with 8 free On-Demand Standard vCPUs in a region offering Graviton m7g and r7g; a workstation with Terraform 1.17 or later, AWS CLI v2 and the Session Manager plugin.

Who this is for

For Kubernetes and platform engineers who already deploy stateful workloads with PersistentVolumeClaims, use a Linux shell and Terraform, and want to run the storage underneath them: a Ceph cluster operated by Rook that keeps three copies of every block, block and shared file volumes through CSI, snapshots, fencing before a lost machine's volume moves, and limits and alerts for capacity, with every failure reproduced on purpose and measured.

Curriculum

Learning topics (17)
  1. Understand the brief and prepare your workstation and account

    Ravensby Press does not want a storage product; it wants last year's six failures to stop costing it data and days. Your brief is to give its Kubernetes cluster storage that survives a lost disk or machine, lets a volume follow its Pod, lets several machines share one file system, and can be measured. Before any of that, you need a workstation that can build the lab and an AWS account that can hold it. This lesson says what you need to know already, what you need to have, and

  2. Understand the lab from disk to database row

    Ravensby Press kept every volume on one server's disk. A failed disk cost six days of catalogue changes, a hung server held the catalogue hostage for three hours, and the image library could only be processed on the machine that held it. The lab replaces node-local volumes with storage the cluster runs itself. Ceph keeps three copies of every block on three machines, Rook operates Ceph from Kubernetes objects, and CSI drivers turn claims into Ceph volumes that can follow thei

  3. Build four machines and a Kubernetes cluster without opening a port

    Ceph cannot be faked on one machine: it keeps copies on separate machines with their own kernels and disks, and the node drills need a machine that really loses power. So before any storage exists, the lab needs four machines, a network between them, and a Kubernetes cluster on top. This lesson explains how the pack builds them, and why nothing in it needs an SSH key or an open port.

  4. Understand how Ceph keeps three copies of every block

    When the catalogue commits a row, where does the row go, and what has to be true before PostgreSQL is told "committed"? On a node-local disk the answer is one disk on one machine, which is how Ravensby Press lost six days of catalogue changes. This lesson follows one write through Ceph, introduces each part of Ceph as the write needs it, and ends with how to read Ceph's own account of its health. Rook and Kubernetes come in the next lessons; here Ceph stands on its own.

  5. Run Ceph from Kubernetes objects with Rook

    Running Ceph by hand means creating monitors with the right keys, preparing each disk for an OSD, writing configuration on every machine, and redoing parts of it whenever a daemon or disk is replaced. Rook does that work from Kubernetes objects: you describe the Ceph cluster you want, and an operator keeps the real one matching it. This lesson explains how, what the lab tells Rook, and the two settings fencing will depend on later.

  6. Give a database a block volume that can follow its Pod

    Last year the catalogue's Pod could not start anywhere else because its data was a directory on one server. On Ceph, its data is an RBD image that any storage machine can map, so the Pod can start wherever Kubernetes puts it. This lesson explains how a PersistentVolumeClaim becomes a mounted file system through the Container Storage Interface, what each step needs, and what the lab asks of it.

  7. Share one file system between machines with CephFS

    The image library lived on one server, so only that server could run the thumbnail workers, and when it was busy the backlog grew for days. The fix is not a faster server: it is a library that every machine can mount at once, so the workers can run on all three. This lesson explains CephFS, the shared file system Ceph provides, and how three workers on three machines share one queue of files without a lock service.

  8. Measure lost writes and pauses with the write probe

    "The catalogue survived the drill" is not a measurement. Did any write that PostgreSQL confirmed disappear? How long could nothing be written? Was it slower afterwards? Ravensby Press's targets are numbers (no acknowledged write lost, a pause under 60 s while a disk fails, writes again within three minutes of the taint), so the lab needs an instrument that produces them. This lesson explains the write probe and the small tool that reads it, so that you can trust, and question

  9. Drain a storage machine without risking a single copy

    Every machine needs maintenance: a kernel update, a firmware fix, a reboot. On a storage machine that means taking away one OSD, one monitor and every Pod it runs, including perhaps the catalogue. Done one machine at a time, Ceph keeps serving from the other two copies. Done to two machines at once, some data is left with one copy and writes stop, or worse. This lesson explains how a drain works, how Rook's disruption budgets refuse the dangerous second drain, and what drill

  10. Lose a disk, then two OSDs, and rebuild

    The disk that failed under the catalogue last year cost Ravensby Press six days of changes, because it held the only copy. On Ceph, a failed disk is a planned event: one OSD goes down, every write continues on the two other copies, and the replacement disk is filled from them. This lesson follows drill 3 through a disk failure and replacement, and drill 4 through the case Ceph deliberately refuses to handle quietly: two OSDs down at once.

  11. Move a volume off a lost machine only after fencing it

    Last year a server hung, Kubernetes marked it NotReady, and the catalogue stayed down for three hours because its data could not move. With Ceph the data can move, but that creates the opposite danger: if the "lost" machine is in fact still running, its old Pod may still be writing when the new one starts, and two writers on one block device destroy the file system. This lesson explains why Kubernetes will not move the Pod on its own, what tells it to, and how fencing makes t

  12. Undo a bad migration with a snapshot, a restore and a clone

    Last year a schema migration emptied the caption column of 40,000 rows. The nightly dump brought them back, but a whole day of new captions was lost, because restoring the dump meant going back to the night before. Replication could not help: it copied the mistake to three disks in milliseconds. This lesson is about the tool for mistakes: a snapshot taken just before the risky change, and a restore that brings back only what was lost.

  13. Limit a noisy neighbour and catch storage running out

    Two of last year's failures were not breakdowns at all. A partner's bulk export wrote at full speed and slowed every catalogue query to seconds, and a disk filled up without warning and stopped the scanner. Shared storage makes both easier to cause, because every workload writes to the same OSDs. This lesson covers the controls for each: an input/output limit for one heavy volume, and three layers that catch capacity running out before Ceph has to refuse writes.

  14. Build the lab, break it on purpose and measure it

    This runbook takes you from an empty AWS account to a measured storage report: four machines, a Kubernetes cluster, a Ceph cluster run by Rook, the archive workload and the write probe, then the ten drills in order, then the report. Cleanup follows it and removes everything. The lessons explain each part; this page is the order of work, what to type where, and how to tell whether it worked.

  15. Diagnose stuck volumes, slow moves and a cluster that will not settle

    Storage failures are confusing because several layers each report part of the truth. Kubernetes says a Pod is ContainerCreating, the CSI driver says an image is "still being used", Ceph says HEALTH_WARN, and the application only says it timed out. Each statement is accurate, and none on its own says what to do. This lesson gives you a way from a symptom to the layer that knows the answer, then sends you to the scenarios to practise it.

  16. Prepare for Kubernetes storage and Ceph interviews

    Storage interviews test whether you can reason about data under failure: where a write goes, what has to be true before it is acknowledged, what happens when a disk or a machine disappears, and what you would check before touching anything. This project gives you a system you built, broke ten ways and measured, to reason about. This lesson explains how to use it; the questions themselves are in the interview topics.

  17. Remove the lab and check that nothing is left

    Everything the lab created in AWS was created by terraform apply from your workstation, carries the tag Lab = <lab name>, and is removed by terraform destroy. Inside the machines, Kubernetes and Ceph go with them. The steps below take the storage apart in order first, because that order is part of running Ceph, then destroy the machines, then check. You can start the cleanup from any point in the runbook, including after a failed step.

Practical build steps (9)
  1. Check your workstation, your account and the region's quota

    You start with a workstation and an AWS account. You finish with every tool answering, a sign-in that works for the account you mean, room for 8 vCPUs in the region, and your choice of lab name and region written down. Nothing is created and nothing is billed yet.

  2. Build the four machines and open a shell on cp-1

    You start with the Source Pack on your workstation. You finish with a VPC, four Ubuntu machines that have installed Kubernetes' packages at first boot, three blank data volumes, a private bucket holding the pack, and a Session Manager shell on cp-1 in /opt/ravensby. From here on the lab is billed until the cleanup.

  3. Build the Kubernetes cluster and join the storage machines

    You start with four prepared machines. You finish with a Kubernetes 1.37 cluster: the control plane and Calico on cp-1, and store-1 to store-3 joined as workers and labelled as storage machines. The join command and its token are deleted again. The data disks are still blank.

  4. Create the Ceph cluster and start the archive

    You start with an empty Kubernetes cluster. You finish with Rook running a Ceph cluster of three monitors and three OSDs on the storage machines, the pools, the file system, the storage and snapshot classes, Prometheus with Rook's alert rules, the archive workload and the write probe, which from now on records every write.

  5. Measure three copies, drain a machine, fail a disk and lose two OSDs

    You start with the archive running and the probe recording. You finish with the first four drills done and their evidence recorded: the cost of three copies, a drain that moves the catalogue and a second drain refused, a disk removed and replaced with its copy rebuilt, and writes that wait while two OSDs are down.

  6. Cut off and power off a machine, without and with fencing

    You start with Ceph settled and fencing off. You finish with drill 6a (a machine cut off from the control plane while it still writes, with no fence), fencing turned on, drill 5 (the catalogue's machine losing power) and drill 6b (the cut-off machine fenced), each machine back in service and every fence lifted.

  7. Restore from a snapshot, grow volumes, limit a neighbour and fill a pool

    You start with every machine back in service. You finish with drills 7 to 10: a bad migration repaired from a snapshot beside the live catalogue, two volumes grown while in use, the partner export measured without and with an input/output limit, and capacity refused or alerted at three layers.

  8. Verify every write and write the storage report

    You start with all ten drills done. You finish with the probe's whole log checked against the catalogue, evidence/report.md written with each target and its measured value, and the versions the cluster ran recorded.

  9. Tear down the storage, destroy the lab and check nothing is left

    You start with the lab in any state, including after a failed step. You finish with the storage taken apart in order, every AWS resource the lab created destroyed, a check that reports nothing left, and your workstation's Terraform files removed. Billing for the lab stops here.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

The lab runs on four EC2 machines in your own AWS account, created by the project's Terraform: about 0.31 USD an hour in ap-south-1 at on-demand prices checked in November 2026, an estimate rather than a cap. A complete run by hand takes about three hours. You pay AWS directly; the cleanup step destroys everything and checks that nothing tagged with the lab's name is left.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy