From the course: Kubernetes and Cloud Native Associate (KCNA) Cert Prep
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Using storage - Kubernetes Tutorial
From the course: Kubernetes and Cloud Native Associate (KCNA) Cert Prep
Using storage
- In this video, I want to demonstrate how to use storage. This video is mainly a demo. Here are the steps in the demo, let me show you. All right, to show you what I want to show you here, I created a couple of YAML files. So here, we have pv.yaml to start with. This is defining a persistent volume, and the important parameters as always are in the spec. So persistent volume has a capacity of two gigabytes and it's using hostPath. HostPath is a path that will be created on the host. The host that runs the workloads and the hostPath will be mydata. Do notice that hostPath is not scalable at all. There are much nicer storage solutions available, but nicer is too complicated for what we want to do here and that's why we keep it simple. So let me run kubectl create -f pv.yaml, and let me use kubectl get pv to show the persistent volumes. As you can see, pv-volume has been created with a capacity of two gigabytes. Now there is this pvc.yaml, and in pvc.yaml, what do we have? We have an…
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Learning objectives39s
-
(Locked)
Understanding decoupling3m 36s
-
(Locked)
Kubernetes storage options2m 9s
-
(Locked)
Using storage5m 58s
-
(Locked)
Managing configuration2m 26s
-
(Locked)
Using ConfigMaps and Secrets7m 58s
-
(Locked)
Practice questions2m 2s
-
(Locked)
Lesson 8 lab: Decoupling applications29s
-
(Locked)
Lesson 8 lab solution: Decoupling applications5m 2s
-
(Locked)
-
-
-
-