Skip to content

Commit

Permalink
CKS: add kube config path in extra control nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Feb 15, 2024
1 parent e47a910 commit b1a3a9c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ write_files:
fi
kubeadm join {{ k8s_control_node.join_ip }}:6443 --token {{ k8s_control_node.cluster.token }} --control-plane --certificate-key {{ k8s_control_node.cluster.ha.certificate.key }} --discovery-token-unsafe-skip-ca-verification
mkdir -p /root/.kube
cp -i /etc/kubernetes/admin.conf /root/.kube/config
chown $(id -u):$(id -g) /root/.kube/config
sudo touch /home/cloud/success
echo "true" > /home/cloud/success
Expand Down

0 comments on commit b1a3a9c

Please sign in to comment.