diff --git a/inventory/sample/group_vars/k8s-cluster/k8s-cluster.yml b/inventory/sample/group_vars/k8s-cluster/k8s-cluster.yml index e24caef35..11a22af3a 100644 --- a/inventory/sample/group_vars/k8s-cluster/k8s-cluster.yml +++ b/inventory/sample/group_vars/k8s-cluster/k8s-cluster.yml @@ -132,7 +132,7 @@ dns_mode: coredns # Set manual server if using a custom cluster DNS server # manual_dns_server: 10.x.x.x # Enable nodelocal dns cache -enable_nodelocaldns: False +enable_nodelocaldns: true nodelocaldns_ip: 169.254.25.10 # Can be docker_dns, host_resolvconf or none diff --git a/roles/kubespray-defaults/defaults/main.yaml b/roles/kubespray-defaults/defaults/main.yaml index 0d59873b3..205362c3e 100644 --- a/roles/kubespray-defaults/defaults/main.yaml +++ b/roles/kubespray-defaults/defaults/main.yaml @@ -62,7 +62,7 @@ ndots: 2 dns_mode: coredns # Enable nodelocal dns cache -enable_nodelocaldns: False +enable_nodelocaldns: true nodelocaldns_ip: 169.254.25.10 # Should be set to a cluster IP if using a custom cluster DNS diff --git a/tests/files/gce_centos7-flannel-addons.yml b/tests/files/gce_centos7-flannel-addons.yml index 5ff0f3045..b4984c636 100644 --- a/tests/files/gce_centos7-flannel-addons.yml +++ b/tests/files/gce_centos7-flannel-addons.yml @@ -21,5 +21,5 @@ cert_manager_enabled: true metrics_server_enabled: true kube_token_auth: true kube_basic_auth: true -enable_nodelocaldns: true +enable_nodelocaldns: false local_path_provisioner_enabled: true