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.
Creating a deployment - Kubernetes Tutorial
From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep
Creating a deployment
- So in the next task you are going to create a deployment with the name updates using the Nginx 1.17 image, three replicas and the label type is prod. Ensure that while updating the deployment, a rolling update is used with the maxSurge parameter set to 50% and the maxAvailable parameter also set to 50% and update the deployment to run the latest version of the Nginx image. And after doing so, roll back the deployment update. Let's check it out. Okay, so let me use kubectl create deploy updates - -image=nginx:1.17 --replicas=3 and we need a label type is prod. We need to do that later. So let me pass by the yaml file. - -dry-run=client -o yaml > task6.yaml So I'm editing my task6.yaml. And there to start with we can use the labels. So type:prod. And then we need the strategy in the deployment spec. Probably the best way to get there is by having a look at the browser and search for maxsurge. That surge is specific enough to be likely to give us directly what we need to see. So here…
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)
-