From f70cbe431f44cb6e9f9dcd84e6a8547a7dcddb06 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Tue, 14 Jun 2016 17:21:32 -0700 Subject: [PATCH] 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 --- examples/ignition/bootkube-master.yaml | 1 + examples/ignition/bootkube-worker.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/ignition/bootkube-master.yaml b/examples/ignition/bootkube-master.yaml index d656c6ed..a1b01bc5 100644 --- a/examples/ignition/bootkube-master.yaml +++ b/examples/ignition/bootkube-master.yaml @@ -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 \ diff --git a/examples/ignition/bootkube-worker.yaml b/examples/ignition/bootkube-worker.yaml index abc49ebf..e74ad055 100644 --- a/examples/ignition/bootkube-worker.yaml +++ b/examples/ignition/bootkube-worker.yaml @@ -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 \