Skip to content

Commit

Permalink
install/k8s/install.sh: set a timeout of 1 second on kubectl requests…
Browse files Browse the repository at this point in the history
… when checking for services to be ready (#312)

Signed-off-by: Bill Robinson <dseevr@users.noreply.github.com>
  • Loading branch information
dseevr authored and unclejack committed Nov 29, 2017
1 parent fd5fca1 commit 7ef5377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/k8s/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ set +e
for i in {0..150}; do
sleep 2
# check contiv pods
$kubectl get pods -n kube-system | grep -v "Running" | grep -q ^contiv && continue
$kubectl get pods -n kube-system --request-timeout=1s | grep -v "Running" | grep -q ^contiv && continue
# check netplugin status
curl -s localhost:9090/inspect/driver | grep -wq FwdMode || continue
break
Expand Down

0 comments on commit 7ef5377

Please sign in to comment.