Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting upgrade job restartPolicy to never #584

Merged
merged 1 commit into from Mar 21, 2021

Conversation

dannyzaken
Copy link
Contributor

@dannyzaken dannyzaken commented Mar 17, 2021

  • setting restartPolicy to never will keep failed pods around so we can examine the failures
  • setting backoffLimit to 4 (default is 6) to reduce the number of pods that can potentially stay in the NS
  • one thing to notice is that failed runs will leave a pod (not running) with ERROR state. This can lead to support cases, but maybe these are cases we want to know about

related to BZ https://bugzilla.redhat.com/show_bug.cgi?id=1938557

Signed-off-by: Danny Zaken dannyzaken@gmail.com

@dannyzaken dannyzaken force-pushed the danny-fixes branch 4 times, most recently from 3804f88 to 5f41c48 Compare March 18, 2021 13:02
// setting the restart policy to never to keep the pods around after failed migrations
// also reducing the backoff limit to avoid to many pods staying around in case of an issue
r.UpgradeJob.Spec.Template.Spec.RestartPolicy = corev1.RestartPolicyNever
r.UpgradeJob.Spec.BackoffLimit = &backoffLimit
r.setDesiredCoreEnv(&r.UpgradeJob.Spec.Template.Spec.Containers[0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this before the added code (line 1004) - so the two parts will be better divided

* setting to never will keep failed pods around so we can examine the failures
* set backoffLimit to 4 (default is 6) to reduce the number of pods that can potentially stay in the NS
* one thing to notice is that failed runs will leave a pod (not running) with ERROR state

Signed-off-by: Danny Zaken <dannyzaken@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants