From 3b4c04fe6565d63fae5e5e9a1fb451068fb9357c Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Mon, 18 Feb 2019 15:54:01 -0800 Subject: [PATCH] loadgenerator: check curl install (#153) without &&, load generator startup was failing intermittently when it fails to install curl from apk-add. Signed-off-by: Ahmet Alp Balkan --- kubernetes-manifests/loadgenerator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes-manifests/loadgenerator.yaml b/kubernetes-manifests/loadgenerator.yaml index 2032b8c..a53bdf8 100644 --- a/kubernetes-manifests/loadgenerator.yaml +++ b/kubernetes-manifests/loadgenerator.yaml @@ -28,7 +28,7 @@ spec: initContainers: - name: wait-frontend image: alpine:3.6 - command: ['sh', '-c', 'set -x; apk add --no-cache curl; + command: ['sh', '-c', 'set -x; apk add --no-cache curl && until timeout -t 2 curl -f "http://${FRONTEND_ADDR}"; do echo "waiting for http://${FRONTEND_ADDR}"; sleep 2;