mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
only add local endpoints into the hairpin ipset
This commit is contained in:
parent
b883f4cff8
commit
647edfd6ed
@ -761,6 +761,9 @@ func (proxier *Proxier) syncProxyRules() {
|
||||
glog.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.
|
||||
|
Loading…
Reference in New Issue
Block a user