> Note that `--cluster-dns` and `--cluster-domain` is used to deploy dns, feel free to discard them if dns is not needed.
> Note that `--cluster-dns` and `--cluster-domain` is used to deploy dns, feel free to discard them if dns is not needed.
...
@@ -179,24 +181,40 @@ sudo docker run \
...
@@ -179,24 +181,40 @@ sudo docker run \
### Also run the service proxy
### Also run the service proxy
```sh
```sh
sudo docker run -d--net=host --privileged gcr.io/google_containers/hyperkube:v1.0.1 /hyperkube proxy --master=http://127.0.0.1:8080 --v=2
sudo docker run -d--net=host --privileged gcr.io/google_containers/hyperkube:v${K8S_VERSION} /hyperkube proxy --master=http://127.0.0.1:8080 --v=2
```
```
### Test it out
### Test it out
At this point, you should have a functioning 1-node cluster. Let's test it out!
At this point, you should have a functioning 1-node cluster. Let's test it out!
Download the kubectl binary and make it available by editing your PATH ENV.
Download the kubectl binary for `${K8S_VERSION}` (look at the URL in the following links) and make it available by editing your PATH environment variable.
@@ -37,7 +37,8 @@ Documentation for other releases can be found at
...
@@ -37,7 +37,8 @@ Documentation for other releases can be found at
These instructions are very similar to the master set-up above, but they are duplicated for clarity.
These instructions are very similar to the master set-up above, but they are duplicated for clarity.
You need to repeat these instructions for each node you want to join the cluster.
You need to repeat these instructions for each node you want to join the cluster.
We will assume that the IP address of this node is `${NODE_IP}` and you have the IP address of the master in `${MASTER_IP}` that you created in the [master instructions](master.md).
We will assume that the IP address of this node is `${NODE_IP}` and you have the IP address of the master in `${MASTER_IP}` that you created in the [master instructions](master.md). We'll need to run several versioned Kubernetes components, so we'll assume that the version we want
to run is `${K8S_VERSION}`, which should hold a value such as "1.0.7".
For each worker node, there are three steps:
For each worker node, there are three steps:
*[Set up `flanneld` on the worker node](#set-up-flanneld-on-the-worker-node)
*[Set up `flanneld` on the worker node](#set-up-flanneld-on-the-worker-node)
...
@@ -50,7 +51,7 @@ As before, the Flannel daemon is going to provide network connectivity.
...
@@ -50,7 +51,7 @@ As before, the Flannel daemon is going to provide network connectivity.
_Note_:
_Note_:
There is a [bug](https://github.com/docker/docker/issues/14106) in Docker 1.7.0 that prevents this from working correctly.
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 wait for Docker 1.7.1.
Please install Docker 1.6.2 or Docker 1.7.1 or Docker 1.8.3.