mirror of https://github.com/k3s-io/k3s
Merge pull request #75265 from JacobTanenbaum/ClearExternalIPs
Clear conntrack entries on 0 -> 1 endpoint transition with externalIPspull/564/head
commit
aa9cbd112c
|
@ -674,6 +674,9 @@ func (proxier *Proxier) syncProxyRules() {
|
||||||
if svcInfo, ok := proxier.serviceMap[svcPortName]; ok && svcInfo != nil && svcInfo.GetProtocol() == v1.ProtocolUDP {
|
if svcInfo, ok := proxier.serviceMap[svcPortName]; ok && svcInfo != nil && svcInfo.GetProtocol() == v1.ProtocolUDP {
|
||||||
klog.V(2).Infof("Stale udp service %v -> %s", svcPortName, svcInfo.ClusterIPString())
|
klog.V(2).Infof("Stale udp service %v -> %s", svcPortName, svcInfo.ClusterIPString())
|
||||||
staleServices.Insert(svcInfo.ClusterIPString())
|
staleServices.Insert(svcInfo.ClusterIPString())
|
||||||
|
for _, extIP := range svcInfo.ExternalIPStrings() {
|
||||||
|
staleServices.Insert(extIP)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -741,6 +741,9 @@ func (proxier *Proxier) syncProxyRules() {
|
||||||
if svcInfo, ok := proxier.serviceMap[svcPortName]; ok && svcInfo != nil && svcInfo.GetProtocol() == v1.ProtocolUDP {
|
if svcInfo, ok := proxier.serviceMap[svcPortName]; ok && svcInfo != nil && svcInfo.GetProtocol() == v1.ProtocolUDP {
|
||||||
klog.V(2).Infof("Stale udp service %v -> %s", svcPortName, svcInfo.ClusterIPString())
|
klog.V(2).Infof("Stale udp service %v -> %s", svcPortName, svcInfo.ClusterIPString())
|
||||||
staleServices.Insert(svcInfo.ClusterIPString())
|
staleServices.Insert(svcInfo.ClusterIPString())
|
||||||
|
for _, extIP := range svcInfo.ExternalIPStrings() {
|
||||||
|
staleServices.Insert(extIP)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue