From f0b5e56e4386eda3642211f110f997b1fd4b042f Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 18:27:21 +0200 Subject: [PATCH] Added healthcheck params in consul tags --- consul/discovery.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consul/discovery.go b/consul/discovery.go index 862cacf..6759e87 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -194,6 +194,8 @@ func (s *Service) getTags() []string { "traefik.http.services." + s.Name + ".loadbalancer.server.scheme=http", "traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.port), "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=true", + "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.interval=1", + "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.timeout=1", "traefik.tls.certificates.certfile=/certs/client.cert", "traefik.tls.certificates.keyfile=/certs/client.key", }