mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CKS: add kube config path in extra control nodes (#8658)
This commit is contained in:
parent
e47a910019
commit
8d4b4dcec4
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user