mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
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:
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user