spinnaker icon indicating copy to clipboard operation
spinnaker copied to clipboard

Spinnaker pipeline stages to do rolling restart with validation

Open manojchandrabss opened this issue 3 years ago • 3 comments

Issue Summary:

I want build a spinnaker pipeline to restarts pods in a deployment for multiple cells(ex 50+ deployment workloads). Once restarted we need to validate all the rolling restarts pods successfully running and deployment workload status is ready. if all rolling restarts are successful it should pass the build else it should terminate.

as of know we are doing kubectl patch to do rolling restart of all the pods in a deployment, no validations to tell the rolling restart is successful. Please suggest good pipeline in spinnaker where we can do rolling restart and validation after restarts. I'm not finding any documents or example pipelines to achieve above rolling restart of pods and validation of deployment workloads once rolling restart is completed.

manojchandrabss avatar Jul 27 '22 04:07 manojchandrabss

I think a stage for a rollout restart could be a useful feature. That only works with deployments though.

If you use a Patch Manifest stage it should wait for all the replicas to become available - is that what you mean by validation?

mattgogerly avatar Aug 23 '22 21:08 mattgogerly

@mattgogerly Thanks for the suggestions. What if want to bring down all pods at time and launch all. any stage we can use.

for example we use kubectl scale --replica=0 manually to scale down and scale up again to take down pods at a time. what we can do this to automate. using Spinnaker

manojchandrabss avatar Aug 26 '22 04:08 manojchandrabss

You should be able to use the Patch Manifest stage on the deployment/replicaset to patch the number of replicas to 0, and then another stage to patch it back to what you want?

mattgogerly avatar Aug 26 '22 11:08 mattgogerly

This issue hasn't been updated in 45 days, so we are tagging it as 'stale'. If you want to remove this label, comment:

@spinnakerbot remove-label stale

spinnakerbot avatar Oct 10 '22 11:10 spinnakerbot

This issue is tagged as 'stale' and hasn't been updated in 45 days, so we are tagging it as 'to-be-closed'. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:

@spinnakerbot remove-label to-be-closed

spinnakerbot avatar Nov 24 '22 11:11 spinnakerbot

This issue is tagged as 'to-be-closed' and hasn't been updated in 45 days, so we are closing it. You can always reopen this issue if needed.

spinnakerbot avatar Jan 08 '23 11:01 spinnakerbot

@manojchandrabss Got a question for you about this!

Bill-Hunting-Threats avatar Apr 10 '23 17:04 Bill-Hunting-Threats