examples/bootkube: Mount /etc/resolv.conf into host kubelet

* Containers must be able to resolve network DNS names,
cannot default to 8.8.8.8
This commit is contained in:
Dalton Hubble
2016-06-14 17:21:32 -07:00
parent 285127daef
commit f70cbe431f
2 changed files with 2 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ systemd:
Requires=flanneld.service
After=flanneld.service
[Service]
Environment="RKT_OPTS=--volume=resolv,kind=host,source=/etc/resolv.conf --mount volume=resolv,target=/etc/resolv.conf"
Environment=KUBELET_ACI=quay.io/coreos/hyperkube
Environment=KUBELET_VERSION=v1.3.0-alpha.5_coreos.0
ExecStart=/usr/lib/coreos/kubelet-wrapper \

View File

@@ -41,6 +41,7 @@ systemd:
Requires=flanneld.service
After=flanneld.service
[Service]
Environment="RKT_OPTS=--volume=resolv,kind=host,source=/etc/resolv.conf --mount volume=resolv,target=/etc/resolv.conf"
Environment=KUBELET_ACI=quay.io/coreos/hyperkube
Environment=KUBELET_VERSION=v1.3.0-alpha.5_coreos.0
ExecStart=/usr/lib/coreos/kubelet-wrapper \