PROFESSIONAL-CLOUD-ARCHITECT · Question #115
You have an application deployed on 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 app
The correct answer is A. Use kubectl set image deployment/echo-deployment <new-image>. 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 Deployment also ensures that only a certain number of Pods are created above the desired number of P
Question
Options
- AUse kubectl set image deployment/echo-deployment <new-image>
- BUse the rolling update functionality of the Instance Group behind the Kubernetes cluster
- CUpdate the deployment yaml file with the new container image.
- DUpdate the service yaml file which the new container image.
How the community answered
(57 responses)- A89% (51)
- B2% (1)
- C4% (2)
- D5% (3)
Explanation
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 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). https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
Topics
Community Discussion
No community discussion yet for this question.