diff options
author | 2019-03-12 17:02:41 +0000 | |
---|---|---|
committer | 2019-03-12 17:02:41 +0000 | |
commit | a07aff75d4e86c2d9e0a0bb3b0111f2d609a5791 (patch) | |
tree | 5f066168589e2b76fc19c7ba04609a4b2b8597c4 /kubernetes/aai/charts/aai-elasticsearch/resources/bin/wait_until_started.sh | |
parent | c4b0b79045a56050f2ed0eee8f13237a90815c3c (diff) | |
parent | a1dd587d6a5204030bc266d371e6ec9fa7c95d7b (diff) |
Merge "Add Searchguard OOM config to ElasticSearch"
Diffstat (limited to 'kubernetes/aai/charts/aai-elasticsearch/resources/bin/wait_until_started.sh')
-rw-r--r-- | kubernetes/aai/charts/aai-elasticsearch/resources/bin/wait_until_started.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kubernetes/aai/charts/aai-elasticsearch/resources/bin/wait_until_started.sh b/kubernetes/aai/charts/aai-elasticsearch/resources/bin/wait_until_started.sh new file mode 100644 index 0000000000..279253b43d --- /dev/null +++ b/kubernetes/aai/charts/aai-elasticsearch/resources/bin/wait_until_started.sh @@ -0,0 +1,9 @@ +#!/bin/sh +RET=1 + +while [[ RET -ne 0 ]]; do + echo "Waiting for Elasticsearch to become ready before running sgadmin..." + curl -XGET -k "https://localhost:{{ .Values.service.internalPort }}/" >/dev/null 2>&1 + RET=$? + sleep 5 +done
\ No newline at end of file |