Merge pull request #121919 from uablrek/etp-local-externalips

kube-proxy: Fix etp:Local for externalIPs
This commit is contained in:
Kubernetes Prow Robot 2023-12-14 08:50:04 +01:00 committed by GitHub
commit 8a9e0d936a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1675,6 +1675,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[kubeExternalIPLocalSet].Name, "dst,dst", "-j", "RETURN")
proxier.filterRules.Write(
"-A", string(kubeIPVSFilterChain),
"-m", "set", "--match-set", proxier.ipsetList[kubeHealthCheckNodePortSet].Name, "dst", "-j", "RETURN")