
Answer-first summary for fast verification
Answer: Implement a Kubernetes Deployment and use Spinnaker to create a new deployment object for each new version of the application.
For blue/green deployments in Kubernetes with Spinnaker, the best practice is to use Kubernetes Deployments. They offer declarative updates for Pods and ReplicaSets, support rolling updates, and align well with Spinnaker’s deployment strategies. Spinnaker’s Kubernetes V2 provider can manage multiple deployment objects for different app versions, facilitating traffic routing between them for blue/green deployments. Direct management of ReplicaSets is not recommended as they are typically controlled by Deployments. Creating new deployment objects for each version (Option D) is the correct strategy for blue/green deployments, whereas updating the existing deployment (Option A) is more akin to a rolling update. Options involving ReplicaSets (B and C) are not advised for deployment workflows.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your application is hosted on Google Kubernetes Engine (GKE), and you aim to utilize Spinnaker with the Kubernetes Provider V2 for blue/green deployments to manage traffic between different versions of your application. What is the recommended approach?
A
Utilize a Kubernetes Deployment and leverage Spinnaker to update the deployment for each new version of the application.
B
Employ a Kubernetes Replica Set and use Spinnaker to create a new service for each new version of the application.
C
Adopt a Kubernetes Replica Set and use Spinnaker to update the Replica Set for each new version of the application.
D
Implement a Kubernetes Deployment and use Spinnaker to create a new deployment object for each new version of the application.