8000 Ability to add `/livez` and `/readyz` endpoints for kubernetes health checks · Issue #558 · static-web-server/static-web-server · GitHub
[go: up one dir, main page]

Skip to content

Ability to add /livez and /readyz endpoints for kubernetes health checks #558

@valerii15298

Description

@valerii15298

Search for duplicate feature request

  • I already searched, and this feature request or improvement is not a duplicate.

Feature scope

Completely new feature

Feature request related to a problem

Kubernetes expects /livez and /readyz health check endpoints.
https://kubernetes.io/docs/reference/using-api/health-checks/
How to add them to sws?

Describe the solution you'd like

Description in docs how to do it.

Describe alternatives you've considered

using nginx directives:

        location /livez {
            access_log off;
            return 200 "ok\n";
            add_header Content-Type text/plain;
        }

        location /readyz {
            access_log off;
            return 200 "ok\n";
            add_header Content-Type text/plain;
        }

Build target

All targets

Additional context

I also tried this:

[[advanced.rewrites]]
source = "/livez"
destination = "/health"

[[advanced.rewrites]]
source = "/readyz"
destination = "/health"

But it did not work unfortunately...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededv2v2 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0