Commit 6df6aab0 authored by Joe Beda's avatar Joe Beda

Move DNS from contrib to cluster/addons

This fixes #3190.
parent c908fbe5
...@@ -29,11 +29,11 @@ DNS_REPLICAS=2 ...@@ -29,11 +29,11 @@ DNS_REPLICAS=2
sed -e "s/{DNS_DOMAIN}/$DNS_DOMAIN/g" \ sed -e "s/{DNS_DOMAIN}/$DNS_DOMAIN/g" \
-e "s/{DNS_REPLICAS}/$DNS_REPLICAS/g" \ -e "s/{DNS_REPLICAS}/$DNS_REPLICAS/g" \
./contrib/dns/skydns-rc.yaml.in \ ./cluster/addons/dns/skydns-rc.yaml.in \
| ./cluster/kubectl.sh create -f - | ./cluster/kubectl.sh create -f -
sed -e "s/{DNS_SERVER_IP}/$DNS_SERVER_IP/g" \ sed -e "s/{DNS_SERVER_IP}/$DNS_SERVER_IP/g" \
./contrib/dns/skydns-svc.yaml.in \ ./cluster/addons/dns/skydns-svc.yaml.in \
| ./cluster/kubectl.sh create -f - | ./cluster/kubectl.sh create -f -
``` ```
...@@ -48,6 +48,6 @@ that to etcd for SkyDNS to find. ...@@ -48,6 +48,6 @@ that to etcd for SkyDNS to find.
## Known issues ## Known issues
DNS resolution does not work from nodes directly, but it DOES work for DNS resolution does not work from nodes directly, but it DOES work for
containers. As best I can figure out, this is some oddity around DNAT and containers. As best I (thockin) can figure out, this is some oddity around DNAT and
localhost in the kernel. I think I have a workaround, but it's not quite baked localhost in the kernel. I think I have a workaround, but it's not quite baked
as of the this writing (11/6/2014). as of the this writing (11/6/2014).
...@@ -43,14 +43,14 @@ echo "... calling setup-monitoring" >&2 ...@@ -43,14 +43,14 @@ echo "... calling setup-monitoring" >&2
setup-monitoring setup-monitoring
if [[ "${ENABLE_CLUSTER_DNS}" == "true" ]]; then if [[ "${ENABLE_CLUSTER_DNS}" == "true" ]]; then
echo "Installing cluster DNS" echo ".. setting up cluster DNS"
sed -e "s/{DNS_DOMAIN}/$DNS_DOMAIN/g" \ sed -e "s/{DNS_DOMAIN}/$DNS_DOMAIN/g" \
-e "s/{DNS_REPLICAS}/$DNS_REPLICAS/g" \ -e "s/{DNS_REPLICAS}/$DNS_REPLICAS/g" \
"${KUBE_ROOT}/contrib/dns/skydns-rc.yaml.in" \ "${KUBE_ROOT}/cluster/addons/dns/skydns-rc.yaml.in" \
| "${KUBE_ROOT}/cluster/kubectl.sh" create -f - | "${KUBE_ROOT}/cluster/kubectl.sh" create -f -
sed -e "s/{DNS_SERVER_IP}/$DNS_SERVER_IP/g" \ sed -e "s/{DNS_SERVER_IP}/$DNS_SERVER_IP/g" \
"${KUBE_ROOT}/contrib/dns/skydns-svc.yaml.in" \ "${KUBE_ROOT}/cluster/addons/dns/skydns-svc.yaml.in" \
| "${KUBE_ROOT}/cluster/kubectl.sh" create -f - | "${KUBE_ROOT}/cluster/kubectl.sh" create -f -
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment