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.

Lesson 7 lab solution: Setting up storage

Lesson 7 lab solution: Setting up storage

- So in order to set this all up, I would recommend to get back to the storage, like we've done before. So we are still in the part that contains all the information you need and that is Configure a Pod to Use a PersistentVolume for Storage. So I am going to copy once more the pv configuration that we have here. I'm not going to use the files that we created earlier because you won't have these files on the exam as well. So I'm creating lab7/pv.yaml. And in lab7/pv.yaml we are pasting all of this. So let's call it lab7pv and storage class name manual. That is okay, and capacity that is okay. Access mode needs to be ReadWriteMany. And the host path needs to be /storage. So, let me use kubectl apply -f lab7pv.yaml so that we can start by creating that. Next, back to the documentation because we need a pvc. Scrolling down a little bit and copying the pvc code. Let's call it lab7pvc.yaml. And in there, well most important thing that I need to change is first the name. Lab7pvc is what I…

Contents