Configure automatic restart for OOM-terminated pods in JupyterHub and Jobs#108
Draft
Configure automatic restart for OOM-terminated pods in JupyterHub and Jobs#108
Conversation
Configure JupyterHub singleuser pods to restart on failure (including OOM) by adding extraPodConfig with restartPolicy: OnFailure. This ensures that user pods that encounter out-of-memory errors will be automatically restarted by Kubernetes without manual intervention. Co-authored-by: SimoneBendazzoli93 <[email protected]>
- Configure maiakubegate Jobs with restartPolicy: OnFailure and backoffLimit: 3 (default) - Make maiakubegate-kaniko Jobs configurable while keeping conservative defaults (Never/0) - Add documentation in values.yaml for both charts explaining the restart behavior - These changes allow user workload Jobs to automatically retry on OOM failures Co-authored-by: SimoneBendazzoli93 <[email protected]>
Created comprehensive documentation explaining: - The changes made to enable automatic pod restarts on OOM - Configuration options for JupyterHub and Jobs - Testing and validation procedures - Migration notes for existing deployments Co-authored-by: SimoneBendazzoli93 <[email protected]>
Copilot
AI
changed the title
[WIP] Configure automatic restart for OOM terminated pods
Configure automatic restart for OOM-terminated pods in JupyterHub and Jobs
Jan 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pods terminated by OOM errors in JupyterHub and batch workloads did not restart automatically, requiring manual intervention.
Changes
JupyterHub singleuser pods (
MAIA_scripts/MAIA_create_JupyterHub_config.py)restartPolicy: OnFailureviaextraPodConfigin generated JupyterHub valuesMAIAKubeGate Job workloads (
charts/maiakubegate/)restartPolicyandbackoffLimitconfigurablerestartPolicy: OnFailure,backoffLimit: 3Kaniko build Jobs (
charts/maiakubegate-kaniko/)restartPolicy: Never,backoffLimit: 0(no retries for builds)Configuration example:
All changes backward compatible via Helm default value patterns. Documentation added in
docs/OOM_RESTART_CONFIGURATION.md.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.