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
365562c0
Commit
365562c0
authored
Sep 07, 2015
by
harry
Committed by
Harry Zhang
Sep 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default version to scripts
parent
8cc75a47
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
docker-multinode.md
docs/getting-started-guides/docker-multinode.md
+8
-2
master.sh
docs/getting-started-guides/docker-multinode/master.sh
+2
-2
worker.sh
docs/getting-started-guides/docker-multinode/worker.sh
+3
-2
No files found.
docs/getting-started-guides/docker-multinode.md
View file @
365562c0
...
@@ -74,6 +74,14 @@ This pattern is necessary because the `flannel` daemon is responsible for settin
...
@@ -74,6 +74,14 @@ This pattern is necessary because the `flannel` daemon is responsible for settin
all of the Docker containers created by Kubernetes. To achieve this, it must run outside of the _main_ Docker daemon. However,
all of the Docker containers created by Kubernetes. To achieve this, it must run outside of the _main_ Docker daemon. However,
it is still useful to use containers for deployment and management, so we create a simpler _bootstrap_ daemon to achieve this.
it is still useful to use containers for deployment and management, so we create a simpler _bootstrap_ daemon to achieve this.
You can specify k8s version on very node before install:
```
export K8S_VERSION=<your_k8s_version (e.g. 1.0.3)>
```
Otherwise, we'll use latest
`hyperkube`
image as default k8s version.
## Master Node
## Master Node
The first step in the process is to initialize the master node.
The first step in the process is to initialize the master node.
...
@@ -81,7 +89,6 @@ The first step in the process is to initialize the master node.
...
@@ -81,7 +89,6 @@ The first step in the process is to initialize the master node.
Clone the Kubernetes repo, and run
[
master.sh
](
docker-multinode/master.sh
)
on the master machine with root:
Clone the Kubernetes repo, and run
[
master.sh
](
docker-multinode/master.sh
)
on the master machine with root:
```
sh
```
sh
export
K8S_VERSION
=
<your_k8s_version
(
e.g. 1.0.1
)>
cd
kubernetes/docs/getting-started-guides/docker-multinode/
cd
kubernetes/docs/getting-started-guides/docker-multinode/
./master.sh
./master.sh
```
```
...
@@ -97,7 +104,6 @@ Once your master is up and running you can add one or more workers on different
...
@@ -97,7 +104,6 @@ Once your master is up and running you can add one or more workers on different
Clone the Kubernetes repo, and run
[
worker.sh
](
docker-multinode/worker.sh
)
on the worker machine with root:
Clone the Kubernetes repo, and run
[
worker.sh
](
docker-multinode/worker.sh
)
on the worker machine with root:
```
sh
```
sh
export
K8S_VERSION
=
<your_k8s_version
(
e.g. 1.0.1
)>
export
MASTER_IP
=
<your_master_ip
(
e.g. 1.2.3.4
)>
export
MASTER_IP
=
<your_master_ip
(
e.g. 1.2.3.4
)>
cd
kubernetes/docs/getting-started-guides/docker-multinode/
cd
kubernetes/docs/getting-started-guides/docker-multinode/
./worker.sh
./worker.sh
...
...
docs/getting-started-guides/docker-multinode/master.sh
View file @
365562c0
...
@@ -27,8 +27,8 @@ fi
...
@@ -27,8 +27,8 @@ fi
# Make sure k8s version env is properly set
# Make sure k8s version env is properly set
if
[
-z
${
K8S_VERSION
}
]
;
then
if
[
-z
${
K8S_VERSION
}
]
;
then
echo
"Please export K8S_VERSION in your env
"
K8S_VERSION
=
"1.0.3
"
e
xit
1
e
cho
"K8S_VERSION is not set, using default:
${
K8S_VERSION
}
"
else
else
echo
"k8s version is set to:
${
K8S_VERSION
}
"
echo
"k8s version is set to:
${
K8S_VERSION
}
"
fi
fi
...
...
docs/getting-started-guides/docker-multinode/worker.sh
View file @
365562c0
...
@@ -27,13 +27,14 @@ fi
...
@@ -27,13 +27,14 @@ fi
# Make sure k8s version env is properly set
# Make sure k8s version env is properly set
if
[
-z
${
K8S_VERSION
}
]
;
then
if
[
-z
${
K8S_VERSION
}
]
;
then
echo
"Please export K8S_VERSION in your env
"
K8S_VERSION
=
"1.0.3
"
e
xit
1
e
cho
"K8S_VERSION is not set, using default:
${
K8S_VERSION
}
"
else
else
echo
"k8s version is set to:
${
K8S_VERSION
}
"
echo
"k8s version is set to:
${
K8S_VERSION
}
"
fi
fi
# Run as root
# Run as root
if
[
"
$(
id
-u
)
"
!=
"0"
]
;
then
if
[
"
$(
id
-u
)
"
!=
"0"
]
;
then
echo
>
&2
"Please run as root"
echo
>
&2
"Please run as root"
...
...
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