mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #107450 from atiratree/local-up-cleanup
remove iptables cleanup from local-up-cluster.sh
This commit is contained in:
commit
935052185c
@ -138,10 +138,6 @@ if [ "${CLOUD_PROVIDER}" == "openstack" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ]; then
|
|
||||||
echo "WARNING : This script MAY be run as root for docker socket / iptables functionality; if failures occur, retry as root." 2>&1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Stop right away if the build fails
|
# Stop right away if the build fails
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -362,8 +358,6 @@ cleanup()
|
|||||||
[[ -n "${ETCD_DIR-}" ]] && kube::etcd::clean_etcd_dir
|
[[ -n "${ETCD_DIR-}" ]] && kube::etcd::clean_etcd_dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Drop the rule we added
|
|
||||||
iptables -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER || true
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user