3 - CKA exam Q3 with Solution...upgrade the deployment (Apology for unwanted noise in a few videos)

preview_player
Показать описание
Question 03 ) Create a new deployment called web-proj-268 with image nginx:1.16 and one replica. Next, upgrade the deployment to version 1.17 using rolling update.
Make sure that the version upgrade is recorded in the resource annotation.
#kubernetes #CKA #DevOps #security
It's easy, you can do it as follows:
SOLUTION 3 #
alias g=kubectl
g create deployment web-proj-268 --image=nginx:1.16
g describe deployment web-proj-268 #You can check container name on 14th line mostly by-default
g set image deployment web-proj-268 nginx=nginx:1.17 --record
g rollout history deployment web-proj-268
Рекомендации по теме