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.