From 49f552bf68bf1ae5e18910f6f59652c091db079f Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sun, 2 Jul 2023 22:30:53 +0200 Subject: [PATCH] consul register as sidecar_service --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index d8e7d56..872f6ff 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -71,7 +71,7 @@ func (s *Service) Register() error { Address: s.Address, Port: s.port, Tags: s.getTags(), - Connect: &consul.AgentServiceConnect{}, + Connect: &consul.AgentServiceConnect{SidecarService: &consul.AgentServiceRegistration{}}, Check: &consul.AgentServiceCheck{ TTL: s.ttl.String(), Status: "passing",