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
e25a34c8
Commit
e25a34c8
authored
May 27, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend logging for cluster validation
parent
ee82d469
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
validate-cluster.sh
cluster/validate-cluster.sh
+5
-3
No files found.
cluster/validate-cluster.sh
View file @
e25a34c8
...
@@ -45,13 +45,15 @@ while true; do
...
@@ -45,13 +45,15 @@ while true; do
if
((
${
found
}
==
"
${
NUM_MINIONS
}
"
))
&&
((
${
ready
}
==
"
${
NUM_MINIONS
}
"
))
;
then
if
((
${
found
}
==
"
${
NUM_MINIONS
}
"
))
&&
((
${
ready
}
==
"
${
NUM_MINIONS
}
"
))
;
then
break
break
else
else
if
((
attempt
>
5
))
;
then
if
((
attempt
>
20
))
;
then
echo
-e
"
${
color_red
}
Detected
${
ready
}
ready nodes, found
${
found
}
nodes out of expected
${
NUM_MINIONS
}
. Your cluster may not be working.
${
color_norm
}
"
echo
-e
"
${
color_red
}
Detected
${
ready
}
ready nodes, found
${
found
}
nodes out of expected
${
NUM_MINIONS
}
. Your cluster may not be working.
${
color_norm
}
"
cat
-n
"
${
MINIONS_FILE
}
"
cat
-n
"
${
MINIONS_FILE
}
"
exit
2
exit
2
else
echo
-e
"
${
color_yellow
}
Waiting for
${
NUM_MINIONS
}
ready nodes.
${
ready
}
ready nodes,
${
found
}
registered. Retrying.
${
color_norm
}
"
fi
fi
attempt
=
$((
attempt+1
))
attempt
=
$((
attempt+1
))
sleep
30
sleep
15
fi
fi
done
done
echo
"Found
${
found
}
nodes."
echo
"Found
${
found
}
nodes."
...
...
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