fix deploy

This commit is contained in:
cdllp2 2022-09-09 21:23:13 +08:00
parent 9b24aa3560
commit c8cf50385d

View File

@ -1,6 +1,6 @@
bash init_node.sh
mkdir ~/.kube && cp config ~/.kube/config
mkdir ~/.kube && cp config ~/.kube/config && cp ~/.kube/config /etc/kubernetes/admin.conf
mkdir kubeconfig && echo "" > kubeconfig/dev-kubeconfig
curl -LO https://dl.k8s.io/release/v1.24.0/bin/linux/amd64/kubectl && chmod +x kubectl && cp kubectl /usr/bin/ && mv kubectl /usr/local/bin/
node=`kubectl get node -o wide |grep $1 |awk '{print $1}'| head -n 1`