3 kubectl proxy || true &
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"
13 echo "cluster not healthy!"
18 echo "PROCESS TERMINATED"