mirror of https://github.com/k3s-io/k3s
Merge pull request #66149 from honkiko/do-not-take-all-endpoints-into-ipset
hairpin ipset could only contain local endpointspull/58/head
commit
d8e78c8ac5
|
@ -775,6 +775,9 @@ func (proxier *Proxier) syncProxyRules() {
|
|||
klog.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