Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bbdce9b25a | |||
| 1d75153698 | |||
| c177133daf | |||
| dad915f2ec |
@@ -67,6 +67,7 @@ func (s *Service) GetFullAddr() string {
|
||||
func (s *Service) Register() error {
|
||||
def := &consul.AgentServiceRegistration{
|
||||
ID: s.GetID(),
|
||||
Kind: consul.ServiceKindConnectProxy,
|
||||
Name: s.Name,
|
||||
Address: s.Address,
|
||||
Port: s.port,
|
||||
@@ -76,6 +77,9 @@ func (s *Service) Register() error {
|
||||
// Port: s.port,
|
||||
// },
|
||||
},
|
||||
// Proxy: &consul.AgentServiceConnectProxyConfig{
|
||||
// DestinationServiceName: s.Name + "dupa",
|
||||
// },
|
||||
Check: &consul.AgentServiceCheck{
|
||||
TTL: s.ttl.String(),
|
||||
Status: "passing",
|
||||
|
||||
Reference in New Issue
Block a user