Design Replicated Persistent Volumes for Kubernetes Clusters
Last updated: November 29, 2026
Quick Overview
Design a Kubernetes-native storage layer, in the spirit of Portworx, that pools local disks across nodes into replicated block volumes, attaches a volume to whichever node runs the pod, survives node failures without data loss, and supports snapshots and cross-cluster disaster recovery.
Pure Storage
November 29, 20260
0
0 solved
Design a Kubernetes-native storage layer, in the spirit of Portworx, that pools local disks across nodes into replicated block volumes, attaches a volume to whichever node runs the pod, survives node failures without data loss, and supports snapshots and cross-cluster disaster recovery.
Portworx is Pure's software-defined storage for containers, and its engineers work on the CSI driver, replication, and the control plane that keeps volume placement consistent as pods move. The interviewer checks replication protocol choice, failure handling during network partitions, and how storage scheduling cooperates with the Kubernetes scheduler.
What the Interviewer Expects
- Separates control plane (placement, metadata via consensus) from data plane (replicated I/O)
- Chooses synchronous replication with a quorum or primary-backup and explains the trade
- Handles node failure, resync of a returning replica, and split brain
- Integrates with CSI and influences pod scheduling toward replica nodes
- Covers snapshots and asynchronous replication to another cluster for DR
- Considers performance isolation and noisy neighbours
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you resync a replica that was offline for an hour without copying the whole volume?
- What happens if the network partitions the current writer from the metadata quorum?
- How would you migrate a volume when a node is drained for maintenance?
- How do you take a crash-consistent snapshot across several volumes of one application?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: create, attach, detach, resize, snapshot and delete volumes through CSI; replication factor 2 or 3 across failure domains; async replication to a remote cluster. Non-functional: no acknowl...
High-Level Design
A storage daemon runs on every node (DaemonSet) and contributes its disks to a pool. A small metadata service, replicated with Raft on three or five nodes, owns volume definitions, replica placement, ...