diff --git a/bcs-ops/install_master.sh b/bcs-ops/install_master.sh index 41e79ca9fa..959a5ebf18 100755 --- a/bcs-ops/install_master.sh +++ b/bcs-ops/install_master.sh @@ -65,7 +65,7 @@ if [[ -z ${MASTER_JOIN_CMD:-} ]]; then else kubeadm init --config="${ROOT_DIR}/kubeadm-config" -v 11 \ || utils::log "FATAL" "${LAN_IP} failed to join master: ${K8S_CTRL_IP}" - systemctl enable --now kubelet + systemctl enable --now kubelet fi install -dv "$HOME/.kube" install -v -m 600 -o "$(id -u)" -g "$(id -g)" \ @@ -100,6 +100,7 @@ else else kubeadm join --config="${ROOT_DIR}/kubeadm-config" -v 11 \ || utils::log "FATAL" "${LAN_IP} failed to join master: ${K8S_CTRL_IP}" + systemctl enable --now kubelet fi install -dv "$HOME/.kube" install -v -m 600 -o "$(id -u)" -g "$(id -g)" \