Modify the updateQueryData job to keep waiting 32/70032/1
authorKajur, Harish (vk250x) <vk250x@att.com>
Tue, 9 Oct 2018 00:45:03 +0000 (20:45 -0400)
committerKajur, Harish (vk250x) <vk250x@att.com>
Tue, 9 Oct 2018 00:45:07 +0000 (20:45 -0400)
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>
kubernetes/aai/charts/aai-traversal/templates/job.yaml

index a018ede..599bbc2 100644 (file)
@@ -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