CKS: add kube config path in extra control nodes (#8658)

This commit is contained in:
Wei Zhou 2024-02-16 15:01:27 +01:00 committed by GitHub
parent e47a910019
commit 8d4b4dcec4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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