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:
parent
c3c9e955e5
commit
0ab7b99a96
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue