From ad22d594495c906c5455628a815ca162be8e1763 Mon Sep 17 00:00:00 2001 From: "Kajur, Harish (vk250x)" Date: Mon, 8 Oct 2018 20:45:03 -0400 Subject: 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) --- charts/aai-traversal/templates/job.yaml | 1 + 1 file changed, 1 insertion(+) (limited to 'charts/aai-traversal') diff --git a/charts/aai-traversal/templates/job.yaml b/charts/aai-traversal/templates/job.yaml index a018ede..599bbc2 100644 --- a/charts/aai-traversal/templates/job.yaml +++ b/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 -- cgit 1.2.3-korg