Minio healtcheack with traefik

Hello, i am trying the use traefik as loadbalancer for a minio pool, according to minio configuration for health minio expose an API to check on

So i try:

          path: /minio/health/live/
          port: 9000  
          interval: 10s
          timeout: 3s
        - url  ""
        - url: ""
        - url: ""
        - url: ""

but it fails. probably because is intended to only check the headers, like so:
curl -I

So, there is any way to accomplish this with traefik ? The documentation mentions header but no meaningful example is given assuming this may be the way to do this.

Hello @Dragnell87

Thanks for using Traefik!

Traefik interprets the HTTP response code - can you please check what is the response code of the five URI?


To complete @jakubhajek answer, choosing the HTTP method of healthcheck is currently in discussion on this issue.

You can add your use case on the issue.

Sure thing, this is what give back:

HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 0
Content-Security-Policy: block-all-mixed-content
Server: MinIO
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Origin
X-Amz-Request-Id: 16F6A51C19B2FD3A
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Date: Wed, 08 Jun 2022 12:30:53 GMT

If a browser intent to get to the health check it will only be redirected to the minio console. This is the reason it currently fails.

Thanks for letting me know, use case submitted.