
Answer-first summary for fast verification
Answer: Update the Kubernetes Service to point to the previous Kubernetes Deployment.
In blue/green deployments on GKE, rollback involves redirecting traffic to the previous stable environment (blue). Option C is correct because updating the Service's selector to match the labels of the previous Deployment instantly switches traffic back, leveraging the idle environment. This is efficient and non-disruptive. Option A is for rolling updates, not blue/green. Option B is destructive and ineffective. Option D stops the new deployment but doesn't redirect traffic, risking downtime.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are designing a CI/CD pipeline for an application running on Google Kubernetes Engine (GKE). The application is deployed using Kubernetes Deployment, Service, and Ingress resources. The team requires a blue/green deployment strategy and has asked you to implement rollback procedures. What steps should you take?
A
Run the kubectl rollout undo command.
B
Delete the new container image, and delete the running Pods.
C
Update the Kubernetes Service to point to the previous Kubernetes Deployment.
D
Scale the new Kubernetes Deployment to zero.
No comments yet.