Repository navigation
demo-intelligence: make OOM demo stay Degraded and resettable - #210
Merged
Merged
Conversation
The oom-demo Deployment flapped between Degraded and Progressing: with no readiness probe, every restart briefly marked the pod Ready, which reset the 10s progress deadline. Add a readiness probe that cannot pass before the OOM kill and raise progressDeadlineSeconds to 30, so the app stays Degraded until memory is raised. Rewrite the OOM runbook so it consistently requires approval, patches only the live resource (Git keeps the broken state, so a sync resets the demo), and closes only after 60s Healthy with no new restarts. Document the break/fix/reset flow in the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The
demo-intelligence-prod-oomapp flapped between Degraded and Progressing (and sometimes Healthy) every 10–20s. The AI-SRE agent was triggered on Degraded, then saw Progressing or Healthy at its 30s check and closed the incident while the pod kept crashing.Root cause: Argo CD only marks a Deployment Degraded on
ProgressDeadlineExceeded.oom-demohad no readiness probe, so every container restart briefly marked the pod Ready. Kubernetes counted that as progress and restarted the 10s deadline.Changes
oom-demo/manifest.yaml: add a readiness probe (initialDelaySeconds: 15) that can't pass before the OOM kill, and raiseprogressDeadlineSecondsfrom 10 to 30. The broken pod never becomes Ready, so the app stays Degraded. Once memory is raised, the probe passes and the app goes Healthy.runbooks/oom.md:README.md: document the break → fix → reset flow.Demo flow
demo-intelligence-prod-oom: the pod is OOMKilled and the app stays Degraded.Notes
trueinpolinux/stress, which should exist if the image is Alpine-based. Do one dry run after merge.🤖 Generated with Claude Code