diff --git a/inventory/sample/group_vars/k8s-cluster/k8s-cluster.yml b/inventory/sample/group_vars/k8s-cluster/k8s-cluster.yml index e24caef353d2aadbabe38745598e966f8ba842e7..11a22af3a82b0b5652d14530a34e99c749cbca16 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 0d59873b32279cd668202fe06a18b5b99c878bf7..205362c3e72ae3ea1cf8c7d49aa8e5ef13d42efb 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 5ff0f3045ff11cae686cb39973a5be12a4c5705b..b4984c6365246f7031cb50cebd16297a841c1b88 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