mirror of https://github.com/k3s-io/k3s
only add local endpoints into the hairpin ipset
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