diff --git a/flannel/install.sh b/flannel/install.sh index 830dc02..4381e9b 100644 --- a/flannel/install.sh +++ b/flannel/install.sh @@ -3,4 +3,3 @@ set -euo pipefail ls *.tar | xargs -I {} docker load -i {} -kubectl apply -f ./kube-flannel.yml diff --git a/scripts/create_cluster.sh b/scripts/create_cluster.sh index 21d525a..42e95d3 100755 --- a/scripts/create_cluster.sh +++ b/scripts/create_cluster.sh @@ -23,4 +23,4 @@ EOF fi # 安装flannel -cd ../flannel && bash install.sh && cd - +cd ../flannel && bash install.sh && kubectl apply -f ./kube-flannel.yml && cd - \ No newline at end of file diff --git a/scripts/init.sh b/scripts/init.sh index 03a88a2..bf4b3cf 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -28,4 +28,5 @@ sed -i 's/.*swap.*/#&/' /etc/fstab cd ../docker && bash ./install.sh && cd - cd ../kubeadm && bash ./install.sh && cd - +cd ../flannel && bash install.sh