Skip to content

[FEAT] Add Healthcheck support #214

@piwicode

Description

@piwicode

Is this a new feature request?

  • I have searched the existing issues

Wanted change

That would be convenient to have healtcheck on this container.

Reason for change

This proves useful for rootless podman when we cannot rely on sdnotify=conmon.
It would be beneficial to every container environment.

Proposed code change

This check would do the trick. expired stands for a ready server with no recent user interaction.

/usr/bin/curl -ks -f http://localhost:8443/healthz | /usr/bin/tee /dev/stderr | /usr/bin/jq -e '.status == "alive" or .status == "expired"'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions