offline-kubernetes-install/cluster.sh
2023-09-12 22:58:49 +08:00

16 lines
274 B
Bash
Executable File

#!/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
./1-init.sh
sed -e "s/^apiserver=.*/apiserver=${VIP}/g" -i 2-create_k8s.sh
./2-create_k8s.sh
./3-nginx_ingress.sh