Want to use patterns in traefik health check not just being alive but healthy

32 Views Asked by At

Is there any way to use a pattern for health check using traefik? for example based on some value in json response ( UP or ready or so )?-- Not using kuber

I tries to use health check but it did not allow me to use my pattern....

1

There are 1 best solutions below

0
On

Not directly, no. See here for the available options.

You can set up an endpoint in your service that only returns 2XX or 3XX if the service is ready to accept requests (and 503 otherwise).