Commit 2a154b49 authored by Wen Wei Li's avatar Wen Wei Li

debug

parent 3b570c24
...@@ -229,7 +229,7 @@ copy_host_file(){ ...@@ -229,7 +229,7 @@ copy_host_file(){
fi fi
} }
install_k8s_node{ install_k8s_node(){
export KUBE_VERSION=v1.28 export KUBE_VERSION=v1.28
eval "DEBIAN_FRONTEND=noninteractive apt-get update -y" eval "DEBIAN_FRONTEND=noninteractive apt-get update -y"
# apt-transport-https may be a dummy package; if so, you can skip that package # apt-transport-https may be a dummy package; if so, you can skip that package
...@@ -257,10 +257,12 @@ main(){ ...@@ -257,10 +257,12 @@ main(){
prerequisite prerequisite
install_cri install_cri
if [[ $2 == "cp" ]]; then if [[ $2 == "cp" ]]; then
if ! command -v kubeadm &>/dev/null; then
install_k8s install_k8s
echo "COPY K8S Config" echo "COPY K8S Config"
copy_k8s_config copy_k8s_config
echo "Finish Setup K8S" echo "Finish Setup K8S"
fi
else else
install_k8s_node install_k8s_node
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment