mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-16 05:47:42 -02:30
dnsmasq runs on all nodes
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
file:
|
file:
|
||||||
path: /etc/dnsmasq.d
|
path: /etc/dnsmasq.d
|
||||||
state: directory
|
state: directory
|
||||||
when: inventory_hostname in groups['kube-master']
|
|
||||||
|
|
||||||
- name: Write dnsmasq configuration
|
- name: Write dnsmasq configuration
|
||||||
template:
|
template:
|
||||||
@@ -40,17 +39,14 @@
|
|||||||
dest: /etc/dnsmasq.d/01-kube-dns.conf
|
dest: /etc/dnsmasq.d/01-kube-dns.conf
|
||||||
mode: 755
|
mode: 755
|
||||||
backup: yes
|
backup: yes
|
||||||
when: inventory_hostname in groups['kube-master']
|
|
||||||
|
|
||||||
- name: Create dnsmasq pod manifest
|
- name: Create dnsmasq pod manifest
|
||||||
template: src=dnsmasq-pod.yml dest=/etc/kubernetes/manifests/dnsmasq-pod.manifest
|
template: src=dnsmasq-pod.yml dest=/etc/kubernetes/manifests/dnsmasq-pod.manifest
|
||||||
when: inventory_hostname in groups['kube-master']
|
|
||||||
|
|
||||||
- name: Check for dnsmasq port (pulling image and running container)
|
- name: Check for dnsmasq port (pulling image and running container)
|
||||||
wait_for:
|
wait_for:
|
||||||
port: 53
|
port: 53
|
||||||
delay: 5
|
delay: 5
|
||||||
when: inventory_hostname in groups['kube-master']
|
|
||||||
|
|
||||||
- name: check resolvconf
|
- name: check resolvconf
|
||||||
stat: path=/etc/resolvconf/resolv.conf.d/head
|
stat: path=/etc/resolvconf/resolv.conf.d/head
|
||||||
|
|||||||
Reference in New Issue
Block a user