Create a deployment as follows:
Name: nginx-app
Using container nginx with version 1.11.10-alpine
The deployment should contain 3 replicas
Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update.
Finally, rollback that update to the previous version 1.11.10-alpine.
Suggested Answer: A
Get Premium CKA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
30 comments · newest first
BO
Bobbye
11 months ago
I thought 1.11.13 had some bugs, so rollback makes sense.
DO
Dottie
11 months ago
Totally agree, rolling updates are the way to go!
LE
Lenna
12 months ago
Wait, why rollback to 1.11.10? Isn’t 1.11.13 better?
ED
Edna
12 months ago
Rolling update to 1.11.13-alpine was smooth!
JO
Jonelle
1 year ago
Just created an nginx deployment with 3 replicas!
AJ
Aja
1 year ago
I think I saw a question like this in our mock exams. The deployment should be straightforward, but I need to double-check the versioning for the update and rollback.
CU
Curt
1 year ago
I feel confident about setting up the initial deployment, but rolling back is a bit fuzzy for me. I hope I can remember the rollback command!
LA
Latonia
1 year ago
I think the rolling update part is similar to what we did in the last session, but I can't recall the exact syntax for the kubectl command.
BE
Berry
1 year ago
I remember we practiced creating deployments with specific replicas, but I'm not sure about the exact command for the rolling update.
KA
Kaycee
1 year ago
Alright, time to put my Kubernetes skills to the test. I'll start by creating the deployment, then use the rolling update functionality to upgrade to the new version, and finally roll it back to the previous version. Gotta love those Kubernetes commands!
JA
Jaime
1 year ago
No problem, I've got this. I'll use `kubectl create deployment` to set up the initial deployment, then `kubectl set image` to update to the new version, and finally `kubectl rollout undo` to roll it back. Easy peasy!
LU
Lucina
1 year ago
Whoa, this is a tricky one. Updating and rolling back a deployment? I'm not sure I've practiced this before. Let me think through the steps carefully and make sure I don't mess anything up.
BU
Bulah
1 year ago
Hmm, okay, I think I can handle this. First, I'll need to create the deployment, then update it to the new version, and finally roll it back. Shouldn't be too difficult, just need to remember the right commands.
IN
India
1 year ago
This looks like a straightforward deployment and update question. I'll start by creating the initial deployment with 3 replicas of the nginx:1.11.10-alpine container.
TH
Thad
2 years ago
Wait, are we allowed to use kubectl? I was planning on just manually editing the YAML files. I hope that's not against the rules...
JE
Jesusita
1 year ago
Don't worry, using kubectl is allowed and it's the recommended way to manage deployments.
AL
Alecia
1 year ago
It's more efficient to use kubectl for these tasks, rather than manually editing YAML files.
BA
Barabara
1 year ago
Yes, you can use kubectl to create the deployment and perform the rolling update.
PA
Paz
2 years ago
Haha, rolling updates and rollbacks? That's child's play! I could do this in my sleep. This exam is going to be a breeze.
TI
Timothy
1 year ago
You got this! Good luck with your exam preparation.
PA
Paulina
1 year ago
Practice makes perfect, so keep practicing those deployment scenarios.
GI
Gianna
1 year ago
Rolling updates and rollbacks are important concepts to understand.
NA
Na
2 years ago
I'm glad you're feeling confident about the exam!
LE
Lennie
2 years ago
Looks good! The key steps are creating the initial deployment, then updating the image to the new version, and finally rolling back to the previous version. Shouldn't be too difficult.
DO
Dorthy
1 year ago
Yes, just need to make sure to follow each step carefully.
AY
Ayesha
2 years ago
I agree, it seems like a straightforward process.
MA
Marvel
2 years ago
I believe we need to carefully manage the replicas during the update.
CL
Clay
2 years ago
This deployment task seems straightforward. I'll use the `kubectl set image` command to perform the rolling update and `kubectl rollout undo` to rollback the deployment.
ED
Edison
2 years ago
I agree, especially the rolling update part.
MA
Marvel
2 years ago
I think the deployment task is quite challenging.