mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Corrected condition. Fix for #71596
This commit is contained in:
parent
3156df3e80
commit
c3c7152c55
@ -1009,7 +1009,7 @@ func (proxier *Proxier) syncProxyRules() {
|
|||||||
}
|
}
|
||||||
if err := proxier.syncService(svcNameString, serv, true); err == nil {
|
if err := proxier.syncService(svcNameString, serv, true); err == nil {
|
||||||
// check if service need skip endpoints that not in same host as kube-proxy
|
// check if service need skip endpoints that not in same host as kube-proxy
|
||||||
onlyLocal := svcInfo.SessionAffinityType == v1.ServiceAffinityClientIP && svcInfo.OnlyNodeLocalEndpoints
|
onlyLocal := svcInfo.SessionAffinityType == v1.ServiceAffinityClientIP || svcInfo.OnlyNodeLocalEndpoints
|
||||||
activeIPVSServices[serv.String()] = true
|
activeIPVSServices[serv.String()] = true
|
||||||
activeBindAddrs[serv.Address.String()] = true
|
activeBindAddrs[serv.Address.String()] = true
|
||||||
if err := proxier.syncEndpoint(svcName, onlyLocal, serv); err != nil {
|
if err := proxier.syncEndpoint(svcName, onlyLocal, serv); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user