Skip to content

Commit

Permalink
fix: 修复新增master kubelet不会开机启动的问题 (#3332)
Browse files Browse the repository at this point in the history
  • Loading branch information
denglouping authored Jul 3, 2024
1 parent 3e73327 commit 7e2bfab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bcs-ops/install_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)" \
Expand Down Expand Up @@ -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)" \
Expand Down

0 comments on commit 7e2bfab

Please sign in to comment.