Browse Source

Merge "Improve the net_resolv_pre_kube function in network.sh"

changes/00/551200/1
Zuul 4 years ago
committed by Gerrit Code Review
parent
commit
e4f22b14f3
  1. 3
      tools/gate/kubeadm/funcs/network.sh

3
tools/gate/kubeadm/funcs/network.sh

@ -26,8 +26,7 @@ function net_default_host_ip {
function net_resolv_pre_kube {
sudo cp -f /etc/resolv.conf /etc/resolv-pre-kube.conf
sudo rm -f /etc/resolv.conf
cat << EOF | sudo tee /etc/resolv.conf
cat << EOF | sudo tee -a /etc/resolv.conf
nameserver ${UPSTREAM_DNS}
EOF
}

Loading…
Cancel
Save