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 PersistentVolumeClaims

Configuring PersistentVolumeClaims

- So the next part of the setup is a PersistentVolumeClaim. And this PersistentVolumeClaim is a separate API resource that defines the request for storage. And the purpose of using PVC is to bind the storage that is provided by a specific PersistentVolume to a site without caring about its exact type. You don't want to know about which storage you use if you are an application developer, right? You just want to use the storage that is available on a site, and that's exactly what the PVC is doing for you. Now, when you use a PVC, you are using a couple of attributes as well. And these are the storageClassName. And the storageClassName refers either to the storage or you use it as a selector label. And the selector label, that means that it will find a PV with a matching storageClassName. Now we have the accessModes, which can be set to ReadWriteOnce, ReadWriteMany and ReadOnly. And we have the resources, which is the required size of the storage. Now, in the resources, if you have a…

Contents