From 8af1ce5863dc520c94baef1699aa1c904f508e2f Mon Sep 17 00:00:00 2001 From: Lars Ekman Date: Tue, 2 May 2023 15:51:22 +0200 Subject: [PATCH] Kube-proxy/ipvs: accept access to healthCheckNodePort on LbIP --- pkg/proxy/ipvs/proxier.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/proxy/ipvs/proxier.go b/pkg/proxy/ipvs/proxier.go index 6b6af9ec374..4b676101866 100644 --- a/pkg/proxy/ipvs/proxier.go +++ b/pkg/proxy/ipvs/proxier.go @@ -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",