Merge pull request #181 from Smana/fix_dnsmasq_as_ds
Dnsmasq runs on all nodes
This commit is contained in:
commit
9949c2b34e
2 changed files with 6 additions and 8 deletions
|
@ -13,6 +13,6 @@
|
|||
roles:
|
||||
- { role: kubernetes/master, tags: master }
|
||||
|
||||
- hosts: kube-master[0]
|
||||
- hosts: k8s-cluster
|
||||
roles:
|
||||
- { role: dnsmasq, tags: dnsmasq }
|
||||
- { role: dnsmasq, tags: dnsmasq }
|
||||
|
|
|
@ -37,10 +37,7 @@
|
|||
- {file: dnsmasq-ds.yml, type: ds}
|
||||
- {file: dnsmasq-svc.yml, type: svc}
|
||||
register: manifests
|
||||
|
||||
# - name: Start resources
|
||||
# command: create -f /etc/kubernetes/{{item.item.file}} --namespace=kube-system
|
||||
# ignore_errors: yes
|
||||
when: inventory_hostname == groups['kube-master'][0]
|
||||
|
||||
- name: Start Resources
|
||||
kube:
|
||||
|
@ -51,14 +48,15 @@
|
|||
filename: /etc/kubernetes/{{item.item.file}}
|
||||
state: "{{item.changed | ternary('latest','present') }}"
|
||||
with_items: manifests.results
|
||||
|
||||
|
||||
when: inventory_hostname == groups['kube-master'][0]
|
||||
|
||||
- name: Check for dnsmasq port (pulling image and running container)
|
||||
wait_for:
|
||||
host: "{{dns_server}}"
|
||||
port: 53
|
||||
delay: 5
|
||||
when: inventory_hostname == groups['kube-master'][0]
|
||||
|
||||
|
||||
- name: check resolvconf
|
||||
stat: path=/etc/resolvconf/resolv.conf.d/head
|
||||
|
|
Loading…
Reference in a new issue