Added deregister_critical_service_after=5s opt

This commit is contained in:
Piotr Biernat 2022-12-07 04:11:20 +01:00
parent 179dd3d850
commit 660e58d36a

View File

@ -64,7 +64,8 @@ func (s *Service) Register() error {
Port: s.port,
Tags: s.getTags(),
Check: &consul.AgentServiceCheck{
TTL: s.ttl.String(),
TTL: s.ttl.String(),
DeregisterCriticalServiceAfter: "5s",
},
}