register fix 2
This commit is contained in:
parent
52793ac244
commit
3fc1191f6e
@ -73,13 +73,14 @@ func (s *Service) Register() error {
|
|||||||
Port: s.port,
|
Port: s.port,
|
||||||
Tags: s.getTags(),
|
Tags: s.getTags(),
|
||||||
Connect: &consul.AgentServiceConnect{
|
Connect: &consul.AgentServiceConnect{
|
||||||
SidecarService: &consul.AgentServiceRegistration{
|
Native: true,
|
||||||
Port: s.port,
|
// SidecarService: &consul.AgentServiceRegistration{
|
||||||
},
|
// Port: s.port,
|
||||||
},
|
// },
|
||||||
Proxy: &consul.AgentServiceConnectProxyConfig{
|
|
||||||
DestinationServiceName: s.Name,
|
|
||||||
},
|
},
|
||||||
|
// Proxy: &consul.AgentServiceConnectProxyConfig{
|
||||||
|
// DestinationServiceName: s.Name,
|
||||||
|
// },
|
||||||
Check: &consul.AgentServiceCheck{
|
Check: &consul.AgentServiceCheck{
|
||||||
TTL: s.ttl.String(),
|
TTL: s.ttl.String(),
|
||||||
Status: "passing",
|
Status: "passing",
|
||||||
|
Loading…
Reference in New Issue
Block a user