From a20c5dcea4bd638170a30953c621b1b83446a3df Mon Sep 17 00:00:00 2001 From: gjmzj Date: Sat, 23 Jan 2021 11:18:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ubuntu=2020.04=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=9B=86=E7=BE=A4dns=E9=97=AE=E9=A2=98=20#970?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/kube-node/templates/kubelet-config.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kube-node/templates/kubelet-config.yaml.j2 b/roles/kube-node/templates/kubelet-config.yaml.j2 index e370083..5f176ad 100644 --- a/roles/kube-node/templates/kubelet-config.yaml.j2 +++ b/roles/kube-node/templates/kubelet-config.yaml.j2 @@ -65,7 +65,7 @@ podPidsLimit: -1 port: 10250 # disable readOnlyPort readOnlyPort: 0 -{% if ansible_distribution_release == "bionic" %} +{% if ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int > 16 %} resolvConf: /run/systemd/resolve/resolv.conf {% else %} resolvConf: /etc/resolv.conf