fix start.sh

This commit is contained in:
cdllp2 2022-08-31 12:06:59 +08:00
parent 4b7b5058c6
commit 7190c9944a

View File

@ -1,6 +1,6 @@
bash init_node.sh
cp config ~/.kube/config
mkdir ~/.kube && cp config ~/.kube/config
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`