From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)

Unlock this course with a free trial

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

Setting up persistent storage

Setting up persistent storage

- So the next assignment was to set up persistent storage. Create a Persistent Volume with the name lab125 that uses HostPath on the directory/lab125. And that's all. Let me show you. So here we have one more example where I would really recommend you go to the documentation. Persistent volume. And so this is what the documentation is giving us. Now we can see persistent volumes, the general line, but in a second line, do you see this? In this exercise, you create a HostPath, PersistentVolume. Well, that happens to be exactly what I need. So let that be what we are going to do. Create a PersistentVolume. There we go. This is the HostPath example. So let me copy the YAML code and let me bring it into a file with the name lab125.yaml. And then I need to modify, so the name needs to be lab125. The label, I don't care about it, but it doesn't bother me either. StorageClassName: Manual. I'm keeping that in because PersistentVolume should have a storage class name. Capacity, the question…

Contents