Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
149bb305
Commit
149bb305
authored
Dec 20, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Dec 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39010 from jszczepkowski/ha-validation-fix
Automatic merge from submit-queue (batch tested with PRs 37477, 39010) Added extra logging in validate cluster.
parents
2bd077df
134e91e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
validate-cluster.sh
cluster/validate-cluster.sh
+2
-0
No files found.
cluster/validate-cluster.sh
View file @
149bb305
...
@@ -53,10 +53,12 @@ CLUSTER_READY_ADDITIONAL_TIME_SECONDS="${CLUSTER_READY_ADDITIONAL_TIME_SECONDS:-
...
@@ -53,10 +53,12 @@ CLUSTER_READY_ADDITIONAL_TIME_SECONDS="${CLUSTER_READY_ADDITIONAL_TIME_SECONDS:-
EXPECTED_NUM_NODES
=
"
${
NUM_NODES
}
"
EXPECTED_NUM_NODES
=
"
${
NUM_NODES
}
"
if
[[
"
${
KUBERNETES_PROVIDER
:-}
"
==
"gce"
]]
;
then
if
[[
"
${
KUBERNETES_PROVIDER
:-}
"
==
"gce"
]]
;
then
echo
"Validating gce cluster, MULTIZONE=
${
MULTIZONE
:-}
"
# In multizone mode we need to add instances for all nodes in the region.
# In multizone mode we need to add instances for all nodes in the region.
if
[[
"
${
MULTIZONE
:-}
"
==
"true"
]]
;
then
if
[[
"
${
MULTIZONE
:-}
"
==
"true"
]]
;
then
EXPECTED_NUM_NODES
=
$(
gcloud compute instances list
--format
=[
no-heading]
--regexp
=
"
${
NODE_INSTANCE_PREFIX
}
.*"
\
EXPECTED_NUM_NODES
=
$(
gcloud compute instances list
--format
=[
no-heading]
--regexp
=
"
${
NODE_INSTANCE_PREFIX
}
.*"
\
--zones
=
$(
gcloud compute zones list
--filter
=
region
=
${
REGION
}
--format
=[
no-heading]
\(
name
\)
|
tr
"
\n
"
","
|
sed
"s/,
$/
/"
)
|
wc
-l
)
--zones
=
$(
gcloud compute zones list
--filter
=
region
=
${
REGION
}
--format
=[
no-heading]
\(
name
\)
|
tr
"
\n
"
","
|
sed
"s/,
$/
/"
)
|
wc
-l
)
echo
"Computing number of nodes, NODE_INSTANCE_PREFIX=
${
NODE_INSTANCE_PREFIX
}
, REGION=
${
REGION
}
, EXPECTED_NUM_NODES=
${
EXPECTED_NUM_NODES
}
"
fi
fi
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment