Skip to content

feat: add healthchecks to cloudflared and rybbit's client - #147

Merged
ineedjet merged 1 commit into
mainfrom
add-cloudflared-rybbit-client-healthchecks
Aug 24, 2026
Merged

feat: add healthchecks to cloudflared and rybbit's client#147
ineedjet merged 1 commit into
mainfrom
add-cloudflared-rybbit-client-healthchecks

Conversation

@ineedjet

Copy link
Copy Markdown
Collaborator

Summary

Noticed on heimdall that cloudflared-cloudflared-1 and rybbit-client-1 had no healthcheck at all - checked what's actually available in each image and confirmed both live on the deployed containers before adding.

  • cloudflared: image has no shell (sh isn't in $PATH), so a wget/curl-based check is out. It ships a purpose-built one instead: cloudflared tunnel ready calls the local /ready endpoint and exits accordingly - but it needs --metrics actually enabled (off by default). Added --metrics 0.0.0.0:20241 to the run command and the matching healthcheck:. Verified live: exit 0 once metrics was on.
  • rybbit client: has wget, Next.js server responds 200 on / - confirmed via docker exec against the running container.

Test plan

  • deploy/tests/ (48 tests) pass
  • pre-commit (yamllint) passes
  • Both healthchecks verified against the live containers on heimdall before writing the compose changes
  • Next deploy shows both containers reporting healthy

cloudflared has no shell in the image, so a CMD-SHELL wget/curl check
won't work - but it ships its own readiness check specifically for
this: `cloudflared tunnel ready` calls the local /ready endpoint and
returns a proper exit code, gated behind --metrics actually being
enabled (it's off by default). Verified live against the running
container before committing: exit 0 once --metrics 0.0.0.0:20241 was
added to the run command.

rybbit's client (Next.js) has wget available and serves 200 on / -
confirmed via docker exec against the live container.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ineedjet
ineedjet merged commit e11981c into main Aug 24, 2026
5 checks passed
@ineedjet
ineedjet deleted the add-cloudflared-rybbit-client-healthchecks branch August 24, 2026 19:17
@ineedjet ineedjet mentioned this pull request Aug 24, 2026
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