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
|
2023-09-12 23:12:13 +08:00
|
|
|
./init.sh
|
2023-09-13 10:40:03 +08:00
|
|
|
./create_cluster.sh ${API_SERVER}
|
2023-09-12 23:12:13 +08:00
|
|
|
./nginx_ingress.sh
|