Browse Source

Change DNS policy for kubernetes components

According to code apiserver, scheduler, controller-manager, proxy don't
use resolution of objects they created. It's not harmful to change
policy to have external resolver.

Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
pull/1246/head
Sergii Golovatiuk 7 years ago
parent
commit
d8aa2d0a9e
4 changed files with 4 additions and 4 deletions
  1. 2
      roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2
  2. 2
      roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2
  3. 2
      roles/kubernetes/master/templates/manifests/kube-scheduler.manifest.j2
  4. 2
      roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2

2
roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2

@ -9,7 +9,7 @@ metadata:
spec:
hostNetwork: true
{% if kube_version | version_compare('v1.6', '>=') %}
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: ClusterFirst
{% endif %}
containers:
- name: kube-apiserver

2
roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2

@ -8,7 +8,7 @@ metadata:
spec:
hostNetwork: true
{% if kube_version | version_compare('v1.6', '>=') %}
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: ClusterFirst
{% endif %}
containers:
- name: kube-controller-manager

2
roles/kubernetes/master/templates/manifests/kube-scheduler.manifest.j2

@ -8,7 +8,7 @@ metadata:
spec:
hostNetwork: true
{% if kube_version | version_compare('v1.6', '>=') %}
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: ClusterFirst
{% endif %}
containers:
- name: kube-scheduler

2
roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2

@ -8,7 +8,7 @@ metadata:
spec:
hostNetwork: true
{% if kube_version | version_compare('v1.6', '>=') %}
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: ClusterFirst
{% endif %}
containers:
- name: kube-proxy

Loading…
Cancel
Save