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