mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
parent
c908fbe59e
commit
6df6aab077
@ -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.
|
|||||||
|
|
||||||
## 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
|
|||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user