summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts
diff options
context:
space:
mode:
authorKajur, Harish (vk250x) <vk250x@att.com>2018-10-08 20:45:03 -0400
committerKajur, Harish (vk250x) <vk250x@att.com>2018-10-08 20:45:07 -0400
commit9a07450fa0cad81d598255d670f2d0972bbd4c04 (patch)
tree476a9f35847c90759742c4e1ddc356425a602632 /kubernetes/aai/charts
parent5386b5afbe087b0a8d9bd2aa270b5b2b80bb7820 (diff)
Modify the updateQueryData job to keep waiting
until the haproxy can be reached by the kubernetes pod created by the job For some reason in certain rare cases the job is being started prematurely before haproxy container is up so doing another check Issue-ID: AAI-1713 Change-Id: I86827af46220eeb94322973d22a3abd4287eacea Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'kubernetes/aai/charts')
-rw-r--r--kubernetes/aai/charts/aai-traversal/templates/job.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/kubernetes/aai/charts/aai-traversal/templates/job.yaml b/kubernetes/aai/charts/aai-traversal/templates/job.yaml
index a018ede1a3..599bbc23fc 100644
--- a/kubernetes/aai/charts/aai-traversal/templates/job.yaml
+++ b/kubernetes/aai/charts/aai-traversal/templates/job.yaml
@@ -58,6 +58,7 @@ spec:
- |
set -x
mkdir -p /opt/aai/logroot/AAI-GQ/misc
+ until nc -w10 -z -v aai.{{.Release.Namespace}} 8443; do echo "Retrying to reach aai on port 8443"; done;
bash -x /opt/app/aai-traversal/docker-entrypoint.sh install/updateQueryData.sh
env:
- name: LOCAL_USER_ID