Kube-proxy/ipvs: accept access to healthCheckNodePort on LbIP

This commit is contained in:
Lars Ekman
2023-05-02 15:51:22 +02:00
parent 33287eee36
commit 8af1ce5863

View File

@@ -1733,6 +1733,9 @@ func (proxier *Proxier) writeIptablesRules() {
proxier.filterRules.Write(
"-A", string(kubeIPVSFilterChain),
"-m", "set", "--match-set", proxier.ipsetList[kubeExternalIPSet].Name, "dst,dst", "-j", "RETURN")
proxier.filterRules.Write(
"-A", string(kubeIPVSFilterChain),
"-m", "set", "--match-set", proxier.ipsetList[kubeHealthCheckNodePortSet].Name, "dst", "-j", "RETURN")
proxier.filterRules.Write(
"-A", string(kubeIPVSFilterChain),
"-m", "conntrack", "--ctstate", "NEW",