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

Unlock this course with a free trial

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

Creating a ConfigMap

Creating a ConfigMap

- Right, the next task was to create a file with the name 'index.html' and a content, 'Welcome to task 3 webServer'. Next you create a config map with the name, 'task3cm' that includes the content of this file. And then you run a pod with the name 'oregonpod' that mounts a config map on the directory, /usr/share/nginx/html/. And hey that looks like something we have seen before. We need to create a pod that mounts a config map. Oh boy, pods that mount a config map. Well, does it make sense to go through the deployment for this one? No, because there is no imperative way to mount config maps in an easy way anyway. So I think we are going to use the documentation for this one. Okay, now that we have a plan, let's do it. And that is by the way something that I would recommend all the time when you are on the exam. First make a plan for every single task. Make a plan how am I going to do this. And once you have your plan, you are going to implement it. Now index html that will be echo…

Contents