Browse Source

configure dnsmasq to listen on localhost only

pull/70/head
Smaine Kahlouch 9 years ago
parent
commit
4c5735cef8
2 changed files with 3 additions and 4 deletions
  1. 5
      roles/dnsmasq/templates/01-kube-dns.conf.j2
  2. 2
      roles/dnsmasq/templates/dnsmasq-pod.yml

5
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

2
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:

Loading…
Cancel
Save