mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +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())
|
glog.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