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
ba5b65ec
Commit
ba5b65ec
authored
Nov 05, 2015
by
He Simei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set valid kubectl path for ubuntu
parent
9b60fb0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
deployAddons.sh
cluster/ubuntu/deployAddons.sh
+1
-0
util.sh
cluster/ubuntu/util.sh
+8
-4
No files found.
cluster/ubuntu/deployAddons.sh
View file @
ba5b65ec
...
...
@@ -21,6 +21,7 @@ set -e
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
source
"config-default.sh"
KUBECTL
=
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
export
KUBECTL_PATH
=
"
${
KUBE_ROOT
}
/cluster/ubuntu/binaries/kubectl"
function
init
{
echo
"Creating kube-system namespace..."
...
...
cluster/ubuntu/util.sh
View file @
ba5b65ec
...
...
@@ -331,6 +331,7 @@ function kube-up() {
done
wait
export
KUBECTL_PATH
=
"
${
KUBE_ROOT
}
/cluster/ubuntu/binaries/kubectl"
verify-cluster
detect-master
export
CONTEXT
=
"ubuntu"
...
...
@@ -414,8 +415,8 @@ function provision-masterandnode() {
# Delete a kubernetes cluster
function
kube-down
{
export
KUBECTL_PATH
=
"
${
KUBE_ROOT
}
/cluster/ubuntu/binaries/kubectl"
source
"
${
KUBE_ROOT
}
/cluster/ubuntu/
${
KUBE_CONFIG_FILE
-
"config-default.sh"
}
"
source
"
${
KUBE_ROOT
}
/cluster/common.sh"
tear_down_alive_resources
...
...
@@ -464,12 +465,13 @@ function prepare-push() {
# Update a kubernetes master with expected release
function
push-master
{
source
"
${
KUBE_ROOT
}
/cluster/ubuntu/
${
KUBE_CONFIG_FILE
-
"config-default.sh"
}
"
if
[[
!
-f
"
${
KUBE_ROOT
}
/cluster/ubuntu/binaries/master/kube-apiserver"
]]
;
then
echo
"There is no required release of kubernetes, please check first"
exit
1
fi
export
KUBECTL_PATH
=
"
${
KUBE_ROOT
}
/cluster/ubuntu/binaries/kubectl"
setClusterInfo
ii
=
0
for
i
in
${
nodes
}
;
do
...
...
@@ -512,6 +514,7 @@ function push-node() {
exit
1
fi
export
KUBECTL_PATH
=
"
${
KUBE_ROOT
}
/cluster/ubuntu/binaries/kubectl"
node_ip
=
${
1
}
setClusterInfo
ii
=
0
...
...
@@ -555,7 +558,8 @@ function kube-push {
echo
"There is no required release of kubernetes, please check first"
exit
1
fi
export
KUBECTL_PATH
=
"
${
KUBE_ROOT
}
/cluster/ubuntu/binaries/kubectl"
#stop all the kube's process & etcd
ii
=
0
for
i
in
${
nodes
}
;
do
...
...
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