19 lines
276 B
Bash
19 lines
276 B
Bash
|
#!/bin/bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
VIP="10.0.0.32"
|
||
|
|
||
|
if [ $(id -u) != "0" ]; then
|
||
|
echo "Error: You must be root to run this script"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
source .env
|
||
|
|
||
|
|
||
|
cd scripts
|
||
|
./1-init.sh
|
||
|
sed -e "s/__API_SERVER__/${VIP}/g" -i 2-create_k8s.sh
|
||
|
./2-create_k8s.sh
|
||
|
./3-nginx_ingress.sh
|