
Explanation:
The correct answer is C because the image can be directly updated using the kubectl command, and Kubernetes Engine performs a rolling update. This method allows for updating the application with minimal downtime.
For more details, refer to the GCP documentation on Kubernetes Engine Rolling updates.
Ultimate access to all questions.
No comments yet.
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 application with minimal downtime to the application. What should you do?
A
Update the service yaml file with the new container image. Use kubectl delete service/echoservice and kubectl create –f
B
Use the rolling update functionality of the Instance Group behind the Kubernetes cluster
C
Use kubectl set image deployment/echo-deployment
D
Update the deployment yaml file with the new container image. Use kubectl delete deployment/echo-deployment and kubectl create –f