Skip to content

🚀 [Feature] Middleware to support Kubernetes probes #2457

@x80486

Description

@x80486

Feature Description

Applications deployed on Kubernetes should provide information about their internal state with Container Probes.

Fiber could make use of a middleware to automatically manage the application availability state, so when deploying in Kubernetes (or any other environment) there is a built-in option for gathering the "liveness" and "readiness" information.

This could be as simple as implementing the aforementioned probes, but it can plug as well in the application's lifecycle; for instance, refusing traffic automatically when starting. etc. — but that could be phased out, if relevant, into another unit of work.

Additional Context (optional)

No response

Code Snippet (optional)

No response

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests may be closed without explanation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions