Topic 1 Question 56
You have an application deployed on Google Kubernetes Engine using a Deployment named echo-deployment. The deployment is exposed using a Service called echo-service. You need to perform an update to the application with minimal downtime to the application. What should you do?
Use kubectl set image deployment/echo-deployment <new-image>
Use the rolling update functionality of the Instance Group behind the Kubernetes cluster
Update the deployment yaml file with the new container image. Use kubectl delete deployment/echo-deployment and kubectl create ג€"f <yaml-file>
Update the service yaml file which the new container image. Use kubectl delete service/echo-service and kubectl create ג€"f <yaml-file>
ユーザの投票
コメント(17)
A is correct.
B is funny
👍 46ffk2019/10/24Correct is A
👍 13jcmoranp2019/10/26- 正解だと思う選択肢: A
Source: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
Deployment ensures that only a certain number of Pods are down while they are being updated. By default, it ensures that at least 75% of the desired number of Pods are up (25% max unavailable).
Deployment also ensures that only a certain number of Pods are created above the desired number of Pods. By default, it ensures that at most 125% of the desired number of Pods are up (25% max surge).
👍 6RitwickKumar2022/08/18
シャッフルモード