From 5a3c2d80aad1542b332498c8ac60413de87e588a Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Wed, 6 Dec 2017 15:17:30 +0100 Subject: [PATCH] Limit number of pods listed as master liveness check. --- cluster/gce/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 34d710ce7fe..1ad4b98f195 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -1532,7 +1532,7 @@ function check-cluster() { -H "Authorization: Bearer ${KUBE_BEARER_TOKEN}" \ ${secure} \ --max-time 5 --fail \ - "https://${KUBE_MASTER_IP}/api/v1/pods" > "${curl_out}" 2>&1; do + "https://${KUBE_MASTER_IP}/api/v1/pods?limit=100" > "${curl_out}" 2>&1; do local elapsed=$(($(date +%s) - ${start_time})) if [[ ${elapsed} -gt ${KUBE_CLUSTER_INITIALIZATION_TIMEOUT} ]]; then echo -e "${color_red}Cluster failed to initialize within ${KUBE_CLUSTER_INITIALIZATION_TIMEOUT} seconds.${color_norm}" >&2