mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #66149 from honkiko/do-not-take-all-endpoints-into-ipset
hairpin ipset could only contain local endpoints
This commit is contained in:
commit
d8e78c8ac5
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user