diff --git a/roles/dnsmasq/templates/01-kube-dns.conf.j2 b/roles/dnsmasq/templates/01-kube-dns.conf.j2 index e9e8d62e073125c3592ebbf03d453258ed87dccd..7a46bee827f20f917ae6cfdf645c7bae77712d58 100644 --- a/roles/dnsmasq/templates/01-kube-dns.conf.j2 +++ b/roles/dnsmasq/templates/01-kube-dns.conf.j2 @@ -1,5 +1,6 @@ -#Listen on all interfaces -interface=* +#Listen on localhost +bind-interfaces +listen-address=127.0.0.1 addn-hosts=/etc/hosts diff --git a/roles/dnsmasq/templates/dnsmasq-pod.yml b/roles/dnsmasq/templates/dnsmasq-pod.yml index 70a826600e6e73951f07b17a6d0c75b57a62e3b9..1150e14c709e5f66afc38bba38932b32a675a7d0 100644 --- a/roles/dnsmasq/templates/dnsmasq-pod.yml +++ b/roles/dnsmasq/templates/dnsmasq-pod.yml @@ -29,11 +29,9 @@ spec: - name: dns containerPort: 53 hostPort: 53 - hostIP: 127.0.0.1 protocol: UDP - name: dns-tcp containerPort: 53 - hostIP: 127.0.0.1 hostPort: 53 protocol: TCP volumeMounts: