595d6427ac
* Mount host /run/xtables.lock in nodelocaldns container * fix typo in nodelocaldns daemonset manifest yml * Add prometheus scrape annotation, updateStrategy and reduce termination grace period * fix indentation * actually fix it.. * Bump k8s-dns-node-cache tag to 1.15.1 (fixes https://github.com/kubernetes/dns/issues/282)
18 lines
653 B
YAML
18 lines
653 B
YAML
---
|
|
- name: Kubernetes Apps | Lay Down nodelocaldns Template
|
|
template:
|
|
src: "{{ item.file }}.j2"
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
|
with_items:
|
|
- { name: nodelocaldns, file: nodelocaldns-config.yml, type: configmap }
|
|
- { name: nodelocaldns, file: nodelocaldns-sa.yml, type: sa }
|
|
- { name: nodelocaldns, file: nodelocaldns-daemonset.yml, type: daemonset }
|
|
register: nodelocaldns_manifests
|
|
vars:
|
|
clusterIP: "{{ skydns_server }}"
|
|
secondaryclusterIP: "{{ skydns_server_secondary }}"
|
|
when:
|
|
- enable_nodelocaldns == True
|
|
- inventory_hostname == groups['kube-master'] | first
|
|
tags:
|
|
- nodelocaldns
|