johndmulhausen 2016-02-18 03:27:50 -08:00
commit 7d5cabd7f6
1 changed files with 14 additions and 12 deletions

View File

@ -6,6 +6,7 @@ and a _worker_ node which receives work from the master. You can repeat the pro
times to create larger clusters.
Here's a diagram of what the final result will look like:
![Kubernetes Single Node on Docker](/images/docs/k8s-docker.png)
_Note_:
@ -16,7 +17,7 @@ _Note_:
There is a [bug](https://github.com/docker/docker/issues/14106) in Docker 1.7.0 that prevents this from working correctly.
Please install Docker 1.6.2 or Docker 1.7.1.
* TOC
* TOC
{:toc}
## Prerequisites
@ -35,10 +36,10 @@ it is still useful to use containers for deployment and management, so we create
You can specify k8s version on very node before install:
```shell
```shell
export K8S_VERSION=<your_k8s_version (e.g. 1.0.3)>
```
```
Otherwise, we'll use latest `hyperkube` image as default k8s version.
## Master Node
@ -47,11 +48,11 @@ The first step in the process is to initialize the master node.
Clone the Kubernetes repo, and run [master.sh](/{{page.version}}/docs/getting-started-guides/docker-multinode/master.sh) on the master machine with root:
```shell
```shell
cd kubernetes/docs/getting-started-guides/docker-multinode/
./master.sh
...
`Master done!`
./master.sh
...
`Master done!`
```
See [here](/{{page.version}}/docs/getting-started-guides/docker-multinode/master) for detailed instructions explanation.
@ -62,11 +63,12 @@ Once your master is up and running you can add one or more workers on different
Clone the Kubernetes repo, and run [worker.sh](/{{page.version}}/docs/getting-started-guides/docker-multinode/worker.sh) on the worker machine with root:
```shell
```shell
export MASTER_IP=<your_master_ip (e.g. 1.2.3.4)>
cd kubernetes/docs/getting-started-guides/docker-multinode/
./worker.sh ...
`Worker done!`
./worker.sh
...
`Worker done!`
````
See [here](/{{page.version}}/docs/getting-started-guides/docker-multinode/worker) for detailed instructions explanation.
@ -79,4 +81,4 @@ See [here](/{{page.version}}/docs/getting-started-guides/docker-multinode/deploy
Once your cluster has been created you can [test it out](/{{page.version}}/docs/getting-started-guides/docker-multinode/testing)
For more complete applications, please look in the [examples directory](https://github.com/kubernetes/kubernetes/tree/master/examples/)
For more complete applications, please look in the [examples directory](https://github.com/kubernetes/kubernetes/tree/master/examples/)