jenkinsci / kubernetes-operator

Kubernetes native Jenkins Operator
https://jenkinsci.github.io/kubernetes-operator
Other
591 stars 231 forks source link

Use prepare-shutdown feature #999

Open toabi opened 2 months ago

toabi commented 2 months ago

When a restart is necessary because of plugin upgrades or other configuration, jenkins should be restarted as gracefully as possible.

It could enable shutdown mode (in the UI under /manage/prepareShutdown/) and then wait until all jobs are done and then recreate the pod.

brokenpip3 commented 2 months ago

Yeah could be a great improvement. however:

toabi commented 2 months ago

Ah, thanks for the answer :)

We actually wondered why the operator doesn't auto-restart the pod. For now with that new behaviour we can manually do this process with a graceful restart. It's not a top priority.