CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

PersistentVolumes and PersistentVolumeClaims

Create a 1Gi volume by hand, then two claims: one asks for 5Gi and waits forever, the other asks for 500Mi and gets the whole gigabyte. The matching rules and the misleading error message are both worth seeing directly.

Storage Guide 67 of 103 Intermediate

Written against the versions above. hostPath is used for the PV so the example needs no storage backend. It is not a production choice.

PersistentVolumes are cluster-scoped, so any node's kubectl does.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE03192.168.0.178Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. Two objects, because two people are involved

  2. A claim that cannot be satisfied, and a misleading error

  3. A claim that fits, and gets more than it asked for

Official sources