Skip to content

Can I adjust the number of replicas between blue/green deployments? #1267

Answered by nextrevision
hoiheart asked this question in Q&A
Discussion options

You must be logged in to vote

There's the ability to set the preview replica count with spec.strategy.blueGreen.previewReplicaCount. Could you set in your manifest the following:

...
spec:
  replicas: 3
  strategy:
    blueGreen:
      previewReplicaCount: 2
...

Then when the promotion is complete, run kubectl scale --replicas=5 rollout/myrollout? Optionally, I suppose you can adjust the scale (using the same command) down to 3 before ever applying the manifest update.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jessesuen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants