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
ee5cad84
Commit
ee5cad84
authored
Apr 24, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7295 from GoogleCloudPlatform/revert-7077-hyperkube
Revert "Update docker examples to 0.15.0"
parents
2128d4e2
49977e6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
Makefile
cluster/images/hyperkube/Makefile
+1
-1
master.md
docs/getting-started-guides/docker-multinode/master.md
+4
-4
worker.md
docs/getting-started-guides/docker-multinode/worker.md
+2
-2
docker.md
docs/getting-started-guides/docker.md
+4
-4
No files found.
cluster/images/hyperkube/Makefile
View file @
ee5cad84
# build the hyperkube image.
VERSION
=
v0.1
5.0
VERSION
=
v0.1
4.2
all
:
curl
-O
http://storage.googleapis.com/kubernetes-release/release/
${
VERSION
}
/bin/linux/amd64/hyperkube
...
...
docs/getting-started-guides/docker-multinode/master.md
View file @
ee5cad84
...
...
@@ -108,20 +108,20 @@ systemctl start docker
Ok, now that your networking is set up, you can startup Kubernetes, this is the same as the single-node case, we will use the "main" instance of the Docker daemon for the Kubernetes components.
```
sh
sudo docker run --net=host -d -v /var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v0.1
5.0
/hyperkube kubelet --api_servers=http://localhost:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=127.0.0.1 --config=/etc/kubernetes/manifests-multi
sudo docker run --net=host -d -v /var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v0.1
4.2
/hyperkube kubelet --api_servers=http://localhost:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=127.0.0.1 --config=/etc/kubernetes/manifests-multi
```
### Also run the service proxy
```
sh
sudo docker run -d --net=host --privileged gcr.io/google_containers/hyperkube:v0.1
5.0
/hyperkube proxy --master=http://127.0.0.1:8080 --v=2
sudo docker run -d --net=host --privileged gcr.io/google_containers/hyperkube:v0.1
4.2
/hyperkube proxy --master=http://127.0.0.1:8080 --v=2
```
### Test it out
At this point, you should have a functioning 1-node cluster. Let's test it out!
Download the kubectl binary
([OS X](http://storage.googleapis.com/kubernetes-release/release/v0.1
5.0
/bin/darwin/amd64/kubectl))
([linux](http://storage.googleapis.com/kubernetes-release/release/v0.1
5.0
/bin/linux/amd64/kubectl))
([OS X](http://storage.googleapis.com/kubernetes-release/release/v0.1
4.2
/bin/darwin/amd64/kubectl))
([linux](http://storage.googleapis.com/kubernetes-release/release/v0.1
4.2
/bin/linux/amd64/kubectl))
List the nodes
...
...
docs/getting-started-guides/docker-multinode/worker.md
View file @
ee5cad84
...
...
@@ -93,14 +93,14 @@ systemctl start docker
Again this is similar to the above, but the
```--api_servers```
now points to the master we set up in the beginning.
```
sh
sudo
docker run
--net
=
host
-d
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v0.1
5.0
/hyperkube kubelet
--api_servers
=
http://
${
MASTER_IP
}
:8080
--v
=
2
--address
=
0.0.0.0
--enable_server
--hostname_override
=
$(
hostname
-i
)
sudo
docker run
--net
=
host
-d
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v0.1
4.2
/hyperkube kubelet
--api_servers
=
http://
${
MASTER_IP
}
:8080
--v
=
2
--address
=
0.0.0.0
--enable_server
--hostname_override
=
$(
hostname
-i
)
```
#### Run the service proxy
The service proxy provides load-balancing between groups of containers defined by Kubernetes
```Services```
```
sh
sudo
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v0.1
5.0
/hyperkube proxy
--master
=
http://
${
MASTER_IP
}
:8080
--v
=
2
sudo
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v0.1
4.2
/hyperkube proxy
--master
=
http://
${
MASTER_IP
}
:8080
--v
=
2
```
...
...
docs/getting-started-guides/docker.md
View file @
ee5cad84
...
...
@@ -12,7 +12,7 @@ docker run --net=host -d kubernetes/etcd:2.0.5.1 /usr/local/bin/etcd --addr=127.
### Step Two: Run the master
```
sh
docker run
--net
=
host
-d
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v0.1
5.0
/hyperkube kubelet
--api_servers
=
http://localhost:8080
--v
=
2
--address
=
0.0.0.0
--enable_server
--hostname_override
=
127.0.0.1
--config
=
/etc/kubernetes/manifests
docker run
--net
=
host
-d
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v0.1
4.2
/hyperkube kubelet
--api_servers
=
http://localhost:8080
--v
=
2
--address
=
0.0.0.0
--enable_server
--hostname_override
=
127.0.0.1
--config
=
/etc/kubernetes/manifests
```
This actually runs the kubelet, which in turn runs a
[
pod
](
http://docs.k8s.io/pods.md
)
that contains the other master components.
...
...
@@ -20,14 +20,14 @@ This actually runs the kubelet, which in turn runs a [pod](http://docs.k8s.io/po
### Step Three: Run the service proxy
*Note, this could be combined with master above, but it requires --privileged for iptables manipulation*
```
sh
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v0.1
5.0
/hyperkube proxy
--master
=
http://127.0.0.1:8080
--v
=
2
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v0.1
4.2
/hyperkube proxy
--master
=
http://127.0.0.1:8080
--v
=
2
```
### Test it out
At this point you should have a running kubernetes cluster. You can test this by downloading the kubectl
binary
(
[
OS X
](
http://storage.googleapis.com/kubernetes-release/release/v0.1
5.0
/bin/darwin/amd64/kubectl
)
)
(
[
linux
](
http://storage.googleapis.com/kubernetes-release/release/v0.1
5.0
/bin/linux/amd64/kubectl
)
)
(
[
OS X
](
http://storage.googleapis.com/kubernetes-release/release/v0.1
4.2
/bin/darwin/amd64/kubectl
)
)
(
[
linux
](
http://storage.googleapis.com/kubernetes-release/release/v0.1
4.2
/bin/linux/amd64/kubectl
)
)
*Note:*
On OS/X you will need to set up port forwarding via ssh:
...
...
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