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
ba5cadef
Commit
ba5cadef
authored
Jul 11, 2014
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some sanity checks to the kube-up script.
parent
56735fe2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
kube-up.sh
cluster/kube-up.sh
+19
-0
No files found.
cluster/kube-up.sh
View file @
ba5cadef
...
...
@@ -133,6 +133,25 @@ until $(curl --insecure --user ${user}:${passwd} --max-time 1 \
sleep
2
done
# Basic sanity checking
for
((
i
=
0
;
i<
${#
MINION_NAMES
[@]
}
;
i++
))
;
do
# Make sure docker is installed
gcutil ssh
${
MINION_NAMES
[
$i
]
}
which docker
>
/dev/null
if
[
"
$?
"
!=
"0"
]
;
then
echo
"Docker failed to install on
${
MINION_NAMES
[
$i
]
}
your cluster is unlikely to work correctly"
echo
"Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
exit
1
fi
# Make sure the kubelet is running
gcutil ssh
${
MINION_NAMES
[
$i
]
}
/etc/init.d/kubelet status
if
[
"
$?
"
!=
"0"
]
;
then
echo
"Kubelet failed to install on
${
MINION_NAMES
[
$i
]
}
your cluster is unlikely to work correctly"
echo
"Please run ./cluster/kube-down.sh and re-create the cluster. (sorry!)"
exit
1
fi
done
echo
echo
"Kubernetes cluster is running. Access the master at:"
echo
...
...
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