Merge pull request #80514 from liuxu623/master

don't delete KUBE-MARK-MASQ chain in iptables/ipvs proxier
This commit is contained in:
Kubernetes Prow Robot
2019-08-28 23:49:56 -07:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@@ -371,7 +371,7 @@ func CleanupLeftovers(ipt utiliptables.Interface) (encounteredError bool) {
natRules := bytes.NewBuffer(nil)
writeLine(natChains, "*nat")
// Start with chains we know we need to remove.
for _, chain := range []utiliptables.Chain{kubeServicesChain, kubeNodePortsChain, kubePostroutingChain, KubeMarkMasqChain} {
for _, chain := range []utiliptables.Chain{kubeServicesChain, kubeNodePortsChain, kubePostroutingChain} {
if _, found := existingNATChains[chain]; found {
chainString := string(chain)
writeBytesLine(natChains, existingNATChains[chain]) // flush