From 9c9ef36ccd87ba5ca759da851f87acabdd2d0d07 Mon Sep 17 00:00:00 2001 From: Ildar Valiullin Date: Tue, 25 Feb 2020 12:15:38 +0300 Subject: [PATCH] add resolver config in kubelet config.yaml --- kubelet.go | 1 + main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kubelet.go b/kubelet.go index ad278af..dbcb129 100644 --- a/kubelet.go +++ b/kubelet.go @@ -253,6 +253,7 @@ func kubeletConfigCreate(certificatesDir string) error { Mode: "Webhook", }, CgroupDriver: "systemd", + ResolverConfig: "/run/systemd/resolve/resolv.conf", ClusterDNS: []string{"10.96.0.10"}, ClusterDomain: "cluster.local", HealthzBindAddress: "127.0.0.1", diff --git a/main.go b/main.go index 68fb817..f20a1b3 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( ) // AppVersion current build application version. -const AppVersion = "0.0.16" +const AppVersion = "0.0.17" func main() { var (