register fix 2
This commit is contained in:
parent
ce7e2bc75a
commit
95584eb407
@ -66,8 +66,8 @@ func (s *Service) GetFullAddr() string {
|
||||
|
||||
func (s *Service) Register() error {
|
||||
def := &consul.AgentServiceRegistration{
|
||||
ID: s.GetID(),
|
||||
// Kind: consul.ServiceKindConnectProxy,
|
||||
ID: s.GetID(),
|
||||
Kind: consul.ServiceKindConnectProxy,
|
||||
Name: s.Name,
|
||||
Address: s.Address,
|
||||
Port: s.port,
|
||||
@ -77,9 +77,9 @@ func (s *Service) Register() error {
|
||||
// Port: s.port,
|
||||
},
|
||||
},
|
||||
// Proxy: &consul.AgentServiceConnectProxyConfig{
|
||||
// DestinationServiceName: s.Name + "dupa",
|
||||
// },
|
||||
Proxy: &consul.AgentServiceConnectProxyConfig{
|
||||
DestinationServiceName: s.Name,
|
||||
},
|
||||
Check: &consul.AgentServiceCheck{
|
||||
TTL: s.ttl.String(),
|
||||
Status: "passing",
|
||||
|
Loading…
Reference in New Issue
Block a user