Unverified Commit d8e78c8a authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

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

hairpin ipset could only contain local endpoints
parents 99811e25 647edfd6
...@@ -775,6 +775,9 @@ func (proxier *Proxier) syncProxyRules() { ...@@ -775,6 +775,9 @@ func (proxier *Proxier) syncProxyRules() {
klog.Errorf("Failed to cast BaseEndpointInfo %q", e.String()) klog.Errorf("Failed to cast BaseEndpointInfo %q", e.String())
continue continue
} }
if !ep.IsLocal {
continue
}
epIP := ep.IP() epIP := ep.IP()
epPort, err := ep.Port() epPort, err := ep.Port()
// Error parsing this endpoint has been logged. Skip to next endpoint. // Error parsing this endpoint has been logged. Skip to next endpoint.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment