mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 18:27:49 +00:00
Modify kube-up to support cluster without nodes.
This commit is contained in:
@@ -51,7 +51,11 @@ ALLOWED_NOTREADY_NODES="${ALLOWED_NOTREADY_NODES:-0}"
|
||||
CLUSTER_READY_ADDITIONAL_TIME_SECONDS="${CLUSTER_READY_ADDITIONAL_TIME_SECONDS:-30}"
|
||||
|
||||
if [[ "${KUBERNETES_PROVIDER:-}" == "gce" ]]; then
|
||||
EXPECTED_NUM_NODES="$(get-num-nodes)"
|
||||
if [[ "${KUBE_CREATE_NODES}" == "true" ]]; then
|
||||
EXPECTED_NUM_NODES="$(get-num-nodes)"
|
||||
else
|
||||
EXPECTED_NUM_NODES="0"
|
||||
fi
|
||||
echo "Validating gce cluster, MULTIZONE=${MULTIZONE:-}"
|
||||
# In multizone mode we need to add instances for all nodes in the region.
|
||||
if [[ "${MULTIZONE:-}" == "true" ]]; then
|
||||
|
Reference in New Issue
Block a user