PortalIP no longer exists
This commit is contained in:
parent
5cc97151fc
commit
fa2c27b64f
@ -57,7 +57,7 @@ func (c *kregistry) GetService(name string) (*registry.Service, error) {
|
||||
|
||||
for _, item := range services.Items {
|
||||
ks.Nodes = append(ks.Nodes, ®istry.Node{
|
||||
Address: item.Spec.PortalIP,
|
||||
Address: item.Spec.ClusterIP,
|
||||
Port: item.Spec.Ports[0].Port,
|
||||
})
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ func (k *watcher) OnUpdate(services []api.Service) {
|
||||
}
|
||||
|
||||
activeServices.Insert(name)
|
||||
serviceIP := net.ParseIP(svc.Spec.PortalIP)
|
||||
serviceIP := net.ParseIP(svc.Spec.ClusterIP)
|
||||
|
||||
ks := ®istry.Service{
|
||||
Name: name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user