k8s_external can now resolve CNAME returned by AWS ELB/NLB (#3916)
Automatically submitted.
This commit is contained in:
parent
54fb2112ac
commit
2e3ef77731
5 changed files with 72 additions and 17 deletions
|
@ -62,7 +62,12 @@ func toService(skipCleanup bool, svc *api.Service) *Service {
|
|||
|
||||
li := copy(s.ExternalIPs, svc.Spec.ExternalIPs)
|
||||
for i, lb := range svc.Status.LoadBalancer.Ingress {
|
||||
s.ExternalIPs[li+i] = lb.IP
|
||||
if lb.IP != "" {
|
||||
s.ExternalIPs[li+i] = lb.IP
|
||||
continue
|
||||
}
|
||||
s.ExternalIPs[li+i] = lb.Hostname
|
||||
|
||||
}
|
||||
|
||||
if !skipCleanup {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue