From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Configuring persistent volumes

Configuring persistent volumes

- In this video, we are going to check out PersistentVolumes. So, we already know that the Pod volume can use a persistent storage type. But a persistent storage type is not a PersistentVolume, because a PersistentVolume is a specific API resource that defines the storage. Pods that are connected to PersistentVolumes are accessing the PersistentVolume by using a PersistentVolumeClaim. And that's also a separate API resource. And the benefit of this approach is that it's all about decoupling. The Pods doesn't connect to a specific storage type, but it'll pick up what is available according to the PersistentVolumeClaim that it's using. So, to summarize the procedure, the Pod uses a PersistentVolumeClaim and the PersistentVolumeClaim is just a request for storage, like, Hey, I need 10 gigs of storage. Then the PVC is going to check on the network what is available, and it'll connect to a PersistentVolume that has five gigabytes available. Now, this approach is very useful in DevOps…

Contents