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 - Kubernetes Tutorial
From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)
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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Module 4: Practice exams introduction26s
-
(Locked)
Learning objectives41s
-
(Locked)
Question overview3m 21s
-
(Locked)
Creating a Kubernetes cluster4m 2s
-
(Locked)
Scheduling a Pod2m 57s
-
(Locked)
Managing application initialization4m 7s
-
(Locked)
Setting up persistent storage2m 24s
-
(Locked)
Configuring application access3m 16s
-
(Locked)
Securing network traffic8m 37s
-
(Locked)
Setting up quota5m 55s
-
(Locked)
Creating a static Pod2m 6s
-
(Locked)
Troubleshooting node services2m 10s
-
(Locked)
Configuring cluster access7m 19s
-
(Locked)
Configuring taints and tolerations5m 5s
-
(Locked)
-
-