mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
23 lines
643 B
Bash
23 lines
643 B
Bash
#!/usr/bin/env bash
|
|
export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig
|
|
|
|
echo "Waiting for operator to be ready..."
|
|
for i in $(seq 1 20); do
|
|
ready=$(kubectl -n gitlab get pod -l control-plane=controller-manager \
|
|
--no-headers 2>/dev/null | awk '{print $2}')
|
|
echo " [$i] operator: $ready"
|
|
if [[ "$ready" == "1/1" ]]; then
|
|
echo "Operator ready. Relaunching installer..."
|
|
break
|
|
fi
|
|
sleep 15
|
|
done
|
|
|
|
cd /Users/chrisfu/dev/knoe
|
|
rm -f install.pid
|
|
mkdir -p logs
|
|
nohup bash install.sh --silent -c conf/service/knoe.cfg \
|
|
> logs/install_final3.log 2>&1 &
|
|
disown
|
|
echo "Installer started — tail logs/install_final3.log"
|