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.
Working with namespaces - Kubernetes Tutorial
From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep
Working with namespaces
- All right, let's talk about the first assignment working with namespaces. That was the assignment, create a namespace with the name Indiana. And in this namespace, create a pod with the name inpod that runs the latest version of Nginx. In the same namespace, create a Secret with the name insecret that stores the variable COLOR with the value blue, and ensure that the poD uses the Secret to define the variable. So what were you supposed to do? Well, let me show you. So kubectl create ns indiana. The complex thing in this assignment is, you need to create a pod with the name inpod that runs the latest version of the Nginx image, and the pod needs to mount a Secret. So you can't use kubectl set env, kubectl set env doesn't work on pods, it only works on deployments. So you know what I am going to do? I am going to create a deployment, and then I'm going to catch the code from the deployment. And based on that, I create my pod. Alternatively, you can try to find the information in the…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Module 7: Sample exam introduction13s
-
(Locked)
Learning objectives47s
-
(Locked)
Exam tips5m 9s
-
(Locked)
Tasks overview6m 54s
-
(Locked)
Grading the exam57s
-
(Locked)
Working with namespaces5m 23s
-
(Locked)
Finding pods1m 38s
-
(Locked)
Creating a ConfigMap5m 31s
-
(Locked)
Using a sidecar4m 56s
-
(Locked)
Using probes1m 30s
-
(Locked)
Creating a deployment4m 48s
-
(Locked)
Exposing applications3m 24s
-
(Locked)
Managing NetworkPolicy4m 44s
-
(Locked)
Using storage5m 37s
-
(Locked)
Using Helm1m 36s
-
(Locked)
Managing resource restrictions2m 18s
-
(Locked)
Creating canary deployments5m 22s
-
(Locked)
Defining container restrictions4m 6s
-
(Locked)
Using a Dockerfile2m 26s
-
(Locked)
Using ServiceAccount2m 32s
-
(Locked)
-