Skip to content

Provide a FileHealthCheckPublisher to support health check based on existence of a file #2472

@scharnyw

Description

@scharnyw

What would you like to be added:
Provide a FileHealthCheckPublisher which creates an empty temporary file (at a configured path) if health check passes, and removes the file if health check fails.

Why is this needed:
Using the existence of a file for health check purposes is a common practice in cloud-native scenarios. As an example, the Kubernetes documentation on health probes uses this approach for illustration purposes.

I can provide a PR to implement this if the idea is OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions