Next, you need to set a CIDR range for flannel. This CIDR should be chosen to be non-overlapping with any existing network you are using:
```sh
sudo docker -H unix:///var/run/docker-bootstrap.sock run --net=host kubernetes/etcd:2.0.5.1 etcdctl set /coreos.com/network/config '{ "Network": "10.1.0.0/16" }'
sudo docker -H unix:///var/run/docker-bootstrap.sock run --net=host gcr.io/google_containers/etcd:2.0.9 etcdctl set /coreos.com/network/config '{ "Network": "10.1.0.0/16" }'
```
...
...
@@ -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.
On the master you created above, create a file named ```node.yaml``` make it's contents:
```yaml
apiVersion:v1beta1
externalID:${NODE_IP}
hostIP:${NODE_IP}
id:${NODE_IP}
apiVersion:v1beta3
kind:Node
resources:
metadata:
name:${NODE_IP}
spec:
externalID:${NODE_IP}
status:
# Fill in appropriate values below
capacity:
# Adjust these to match your node
cpu:"1"
memory:3892043776
memory:3Gi
```
Make the API call to add the node, you should do this on the master node that you created above. Otherwise you need to add ```-s=http://${MASTER_IP}:8080``` to point ```kubectl``` at the master.