Update deployDNS.md

pull/170/head
johndmulhausen 2016-03-17 17:14:50 -07:00
parent 2d0f2cee78
commit cae5138957
1 changed files with 2 additions and 8 deletions
docs/getting-started-guides/docker-multinode

View File

@ -21,22 +21,16 @@ $ export DNS_SERVER_IP=10.0.0.10 # specify in startup parameter `--cluster-dns`
### Replace the corresponding value in the template and create the pod ### Replace the corresponding value in the template and create the pod
```shell ```shell{% raw %}
$ sed -e "s/{{ pillar\['dns_replicas'\] }}/${DNS_REPLICAS}/g;s/{{ pillar\['dns_domain'\] }}/${DNS_DOMAIN}/g;s/{{ pillar\['dns_server'\] }}/${DNS_SERVER_IP}/g" skydns.yaml.in > ./skydns.yaml $ sed -e "s/{{ pillar\['dns_replicas'\] }}/${DNS_REPLICAS}/g;s/{{ pillar\['dns_domain'\] }}/${DNS_DOMAIN}/g;s/{{ pillar\['dns_server'\] }}/${DNS_SERVER_IP}/g" skydns.yaml.in > ./skydns.yaml
# If the kube-system namespace isn't already created, create it # If the kube-system namespace isn't already created, create it
$ kubectl get ns $ kubectl get ns
$ kubectl create -f ./kube-system.yaml $ kubectl create -f ./kube-system.yaml
$ kubectl create -f ./skydns.yaml $ kubectl create -f ./skydns.yaml{% endraw %}
``` ```
### Test if DNS works ### Test if DNS works
Follow [this link](https://releases.k8s.io/{{page.githubbranch}}/cluster/addons/dns#how-do-i-test-if-it-is-working) to check it out. Follow [this link](https://releases.k8s.io/{{page.githubbranch}}/cluster/addons/dns#how-do-i-test-if-it-is-working) to check it out.