offline-kubernetes-install/single.sh

16 lines
280 B
Bash
Raw Normal View History

2023-09-12 17:40:05 +08:00
#!/bin/bash
set -euo pipefail
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
cd scripts
./1-init.sh
2023-09-12 22:55:48 +08:00
sed -e "s/^apiserver=.*/apiserver=${API_SERVER}/g" -i 2-create_k8s.sh
2023-09-12 17:40:05 +08:00
./2-create_k8s.sh
./3-nginx_ingress.sh