From d1caf73619c80ff2047a23d6c44b94f5f2807194 Mon Sep 17 00:00:00 2001 From: chendile <42484658+chendile@users.noreply.github.com> Date: Wed, 8 Jun 2022 23:04:15 +0800 Subject: [PATCH] Update start.sh --- install/kubernetes/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/kubernetes/start.sh b/install/kubernetes/start.sh index 10655366..ff536cf9 100644 --- a/install/kubernetes/start.sh +++ b/install/kubernetes/start.sh @@ -3,11 +3,12 @@ mkdir -p ~/.kube/ kubeconfig /data/k8s/kubeflow/pipeline/workspace /data/k8s/kub cp config ~/.kube/config cp config kubeconfig/dev-kubeconfig +curl -LO https://dl.k8s.io/release/v1.18.0/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/bin/ node=`kubectl get node -o wide |grep $1 |awk '{print $1}'| head -n 1` kubectl label node $node train=true cpu=true notebook=true service=true org=public istio=true knative=true kubeflow=true kubeflow-dashboard=true mysql=true redis=true monitoring=true logging=true --overwrite # 拉取镜像 sh pull_image_kubeflow.sh -curl -LO https://dl.k8s.io/release/v1.18.0/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/bin/ + #wget https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv4.5.1/kustomize_v4.5.1_linux_amd64.tar.gz && tar -zxvf kustomize_v4.5.1_linux_amd64.tar.gz && chmod +x kustomize && mv kustomize /usr/bin/ wget https://pengluan-76009.sz.gfp.tencent-cloud.com/github/kustomize_v4.5.1_linux_amd64.tar.gz && tar -zxvf kustomize_v4.5.1_linux_amd64.tar.gz && chmod +x kustomize && mv kustomize /usr/bin/ # 创建命名空间