From b1f04badd5abef12e09846a2b1f9beed8ca98619 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 18:32:46 +0200 Subject: [PATCH] Added healthcheck params in consul tags --- consul/discovery.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 6759e87..94d2c67 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -194,8 +194,9 @@ 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.http.services." + s.Name + ".loadbalancer.healthcheck.interval=1s", + "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.timeout=1s", + "traefik.http.services." + s.Name + ".loadbalancer.healthcheck.path=/health", "traefik.tls.certificates.certfile=/certs/client.cert", "traefik.tls.certificates.keyfile=/certs/client.key", }