offline-kubernetes-install/cluster.sh

16 lines
274 B
Bash
Raw Normal View History

2023-09-12 22:58:49 +08:00
#!/bin/bash
set -euo pipefail
source cluster.env
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script"
exit 1
fi
cd scripts
2023-09-12 23:12:13 +08:00
./init.sh
sed -e "s/^apiserver=.*/apiserver=${VIP}/g" -i create_cluster.sh
./create_cluster.sh
./nginx_ingress.sh