offline-kubernetes-install/single.sh

15 lines
359 B
Bash
Raw Permalink Normal View History

2023-09-12 17:40:05 +08:00
#!/bin/bash
2023-09-12 22:55:48 +08:00
source single.env
2023-09-12 17:40:05 +08:00
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script"
exit 1
fi
2024-02-02 13:29:01 +08:00
cd init && bash init.sh && cd -
cd docker && bash install.sh && cd -
cd flannel && bash install.sh && cd -
cd kubeadm && bash install.sh && bash create_cluster.sh ${API_SERVER} && cd -
cd ingress-nginx && bash install.sh && cd -