diff --git a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 index b483047db..1e06d0c42 100644 --- a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 @@ -7,7 +7,7 @@ metadata: k8s-app: kube-controller spec: hostNetwork: true -{% if kube_version | version_compare('v1.6', '>=') %} +{% if kube_version | version_compare('v1.6', '>=') and not dns_early|bool %} dnsPolicy: ClusterFirstWithHostNet {% endif %} containers: