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

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Lesson 7 lab: Setting up storage

Lesson 7 lab: Setting up storage

- All right, now that we are at the end of this lesson, let's do a lab. In this lab, you are going to create a persistent volume using the host path storage type and the directory /storage, and the ReadWriteMany storage type. Then you'll run a Pod based on the busybox image with the sleep infinity command as a default command. Configure this Pod such that it mounts the PV storage on the directory /data. And finally, use a kubectl cp command to copy the /etc/hosts file from your computer to the PV storage, and verify on the storage host that the storage has been written. Good luck with that.

Contents