Skip to content

Commit 4490add

Browse files
committed
Fix for systemd-resolved DNS incompatibility
This problem occurs because systems using systemd-resolved copy 127.0.0.53 from the host's /etc/resolv.conf. More discussion here: kubernetes/kubernetes#45828 Related issues: kubernetes/kubeadm#787 kubernetes/kubeadm#273 kubernetes/kubeadm#845 The upstream fix is now in v1.11.
1 parent 93843af commit 4490add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constants/constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const (
6363
NodeadmKubeletSystemdDropinFilename = "20-nodeadm.conf"
6464
NodeadmKubeletSystemdDropinTemplate = `[Service]
6565
Environment="KUBELET_DNS_ARGS=--cluster-dns={{ .ClusterDNS }} --cluster-domain={{ .ClusterDomain }}"
66-
Environment="KUBELET_EXTRA_ARGS=--max-pods={{ .MaxPods }} --fail-swap-on={{ .FailSwapOn }} --hostname-override={{ .HostnameOverride }} --kube-api-qps={{ .KubeAPIQPS }} --kube-api-burst={{ .KubeAPIBurst }} --feature-gates={{ .FeatureGates}} --eviction-hard={{ .EvictionHard }}"
66+
Environment="KUBELET_EXTRA_ARGS=--resolv-conf=/run/systemd/resolve/resolv.conf --max-pods={{ .MaxPods }} --fail-swap-on={{ .FailSwapOn }} --hostname-override={{ .HostnameOverride }} --kube-api-qps={{ .KubeAPIQPS }} --kube-api-burst={{ .KubeAPIBurst }} --feature-gates={{ .FeatureGates}} --eviction-hard={{ .EvictionHard }}"
6767
`
6868
)
6969

0 commit comments

Comments
 (0)