Commit 62a2ca27 authored by Wen Wei Li's avatar Wen Wei Li

bypass already installation of crio and kubeadm

parent 2a154b49
......@@ -32,6 +32,7 @@ cgroup=`ls /sys/fs/cgroup/cgroup.controllers`
#install_k8s(){
prerequisite(){
touch /etc/modules-load.d/k8s.conf
cat > /etc/modules-load.d/k8s.conf << EOF
overlay
......@@ -254,8 +255,10 @@ main(){
update_system
echo "Installing"
copy_host_file $1
prerequisite
install_cri
if ! command -v crio &>/dev/null; then
prerequisite
install_cri
fi
if [[ $2 == "cp" ]]; then
if ! command -v kubeadm &>/dev/null; then
install_k8s
......
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