Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #681 from robszumski/mount-resolv
Browse files Browse the repository at this point in the history
docs: mount resolv.conf from host
  • Loading branch information
aaronlevy committed Sep 21, 2016
2 parents 8ee9c59 + 9add9dc commit 4732770
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Documentation/deploy-master.md
Expand Up @@ -103,7 +103,6 @@ Note that the kubelet running on a master node may log repeated attempts to post
- [mounting ephemeral disks][mount-disks]
- [allow pods to mount RDB][rdb] or [iSCSI volumes][iscsi]
- [allowing access to insecure container registries][insecure-registry]
- [use host DNS configuration instead of a public DNS server][host-dns]
- [changing your CoreOS auto-update settings][update]

**/etc/systemd/system/kubelet.service**
Expand All @@ -115,7 +114,9 @@ ExecStartPre=/usr/bin/mkdir -p /var/log/containers

Environment=KUBELET_VERSION=${K8S_VER}
Environment="RKT_OPTS=--volume var-log,kind=host,source=/var/log \
--mount volume=var-log,target=/var/log"
--mount volume=var-log,target=/var/log \
--volume dns,kind=host,source=/etc/resolv.conf \
--mount volume=dns,target=/etc/resolv.conf"

ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=http://127.0.0.1:8080 \
Expand Down
5 changes: 3 additions & 2 deletions Documentation/deploy-workers.md
Expand Up @@ -86,7 +86,6 @@ Create `/etc/systemd/system/kubelet.service` and substitute the following variab
- [mounting ephemeral disks][mount-disks]
- [allow pods to mount RDB][rdb] or [iSCSI volumes][iscsi]
- [allowing access to insecure container registries][insecure-registry]
- [use host DNS configuration instead of a public DNS server][host-dns]
- [changing your CoreOS auto-update settings][update]

**/etc/systemd/system/kubelet.service**
Expand All @@ -98,7 +97,9 @@ ExecStartPre=/usr/bin/mkdir -p /var/log/containers

Environment=KUBELET_VERSION=${K8S_VER}
Environment="RKT_OPTS=--volume var-log,kind=host,source=/var/log \
--mount volume=var-log,target=/var/log"
--mount volume=var-log,target=/var/log \
--volume dns,kind=host,source=/etc/resolv.conf \
--mount volume=dns,target=/etc/resolv.conf"

ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=https://${MASTER_HOST} \
Expand Down

0 comments on commit 4732770

Please sign in to comment.