Extend K8S and RIC installation instructions
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / mc-stack / charts / elasticsearch / examples / default / rolling_upgrade.sh
1 #!/usr/bin/env bash -x
2
3 kubectl proxy || true &
4
5 make &
6 PROC_ID=$!
7
8 while kill -0 "$PROC_ID" >/dev/null 2>&1; do
9     echo "PROCESS IS RUNNING"
10     if curl --fail 'http://localhost:8001/api/v1/proxy/namespaces/default/services/elasticsearch-master:9200/_search' ; then
11         echo "cluster is healthy"
12     else
13         echo "cluster not healthy!"
14         exit 1
15     fi
16     sleep 1
17 done
18 echo "PROCESS TERMINATED"
19 exit 0