Merge pull request #66149 from honkiko/do-not-take-all-endpoints-into-ipset

hairpin ipset could only contain local endpoints
pull/58/head
k8s-ci-robot 2018-11-12 02:04:09 -08:00 committed by GitHub
commit d8e78c8ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -775,6 +775,9 @@ func (proxier *Proxier) syncProxyRules() {
klog.Errorf("Failed to cast BaseEndpointInfo %q", e.String())
continue
}
if !ep.IsLocal {
continue
}
epIP := ep.IP()
epPort, err := ep.Port()
// Error parsing this endpoint has been logged. Skip to next endpoint.