Use ClusterFirstWithHostNet only when not dns_early

On early stage we'll use default DNS policy. Then we'll use
ClusterFirstWithHostNet policy once dnsmasq is set up

Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
This commit is contained in:
Sergii Golovatiuk 2017-04-19 19:08:49 +02:00
parent c3c9e955e5
commit 0ab7b99a96

View file

@ -7,7 +7,7 @@ metadata:
k8s-app: kube-controller k8s-app: kube-controller
spec: spec:
hostNetwork: true hostNetwork: true
{% if kube_version | version_compare('v1.6', '>=') %} {% if kube_version | version_compare('v1.6', '>=') and not dns_early|bool %}
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
{% endif %} {% endif %}
containers: containers: