Skip to content

restart-count probe + elpio pod_ref (FEAT-5, FEAT-7) - #33

Merged
joy-software merged 1 commit into
mainfrom
feature/probes-elpio-restartcount
Jun 7, 2026
Merged

restart-count probe + elpio pod_ref (FEAT-5, FEAT-7)#33
joy-software merged 1 commit into
mainfrom
feature/probes-elpio-restartcount

Conversation

@joy-software

Copy link
Copy Markdown
Contributor
  • FEAT-7restart-count probe: unhealthy on CrashLoopBackOff, an OOMKilled last-state, or restartCount >= max_restarts (default 5). Registered in PROBES.
  • FEAT-5 — elpio probes gain pod_ref() so l/s/inspect work on elpio targets: ElpioServiceserving.knative.dev/service=<name> (default knative engine), ElpioTaskelpio.io/service=<name> (KEDA dispatcher pods, verified against elpio's engines). ElpioFunction stays without one (it's a build).

Deferred (same task, follow-up): PVC-usage needs kubelet volume stats kubectl doesn't expose; cert-expiry needs a cert-parsing dep the hardened image avoids.

Tests: 6 restart-count cases (healthy/threshold/CrashLoop/OOMKilled/no-pods/refs) + elpio pod_ref params. 229 passed; ruff/mypy clean. Tasks #23, #25 (partial).

FEAT-7: a `restart-count` probe flags crash-looping pods -- CrashLoopBackOff, an
OOMKilled last state, or restartCount >= max_restarts (default 5) -- the common
"up but unhealthy" signals a readiness check misses between restarts. The detail
names the worst container and why.

FEAT-5: the elpio probes gain pod_ref() so `l` (logs), `s` (shell), and inspect
work on elpio targets. ElpioService uses the knative pod label
(serving.knative.dev/service, its default engine); ElpioTask uses elpio's
canonical elpio.io/service label on its KEDA dispatcher pods. ElpioFunction stays
without one (it is a build; the produced service is supervised separately).

PVC-usage and cert-expiry from the same task are deferred: PVC usage needs kubelet
volume stats kubectl does not expose, and cert parsing needs a dep the hardened
image avoids. Tracked for a follow-up.
@joy-software
joy-software merged commit 990177d into main Jun 7, 2026
8 checks passed
@joy-software
joy-software deleted the feature/probes-elpio-restartcount branch June 7, 2026 21:18
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.

1 participant