Use static files in KubeDNS templating task (#4379)
This commit adapts the "Lay Down KubeDNS Template" task to use the static files moved by pull request [1] [1] https://github.com/kubernetes-sigs/kubespray/pull/4341
This commit is contained in:
parent
f17f4ff963
commit
2fb27c8521
1 changed files with 11 additions and 10 deletions
|
@ -1,18 +1,19 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Kubernetes Apps | Lay Down KubeDNS Template
|
- name: Kubernetes Apps | Lay Down KubeDNS Template
|
||||||
template:
|
action: "{{ item.module }}"
|
||||||
src: "{{ item.file }}.j2"
|
args:
|
||||||
|
src: "{{ item.file }}{% if item.module == 'template' %}.j2{% endif %}"
|
||||||
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { name: kube-dns, file: kubedns-sa.yml, type: sa }
|
- { name: kube-dns, module: template, file: kubedns-sa.yml, type: sa }
|
||||||
- { name: kube-dns, file: kubedns-config.yml, type: configmap }
|
- { name: kube-dns, module: template, file: kubedns-config.yml, type: configmap }
|
||||||
- { name: kube-dns, file: kubedns-deploy.yml, type: deployment }
|
- { name: kube-dns, module: template, file: kubedns-deploy.yml, type: deployment }
|
||||||
- { name: kube-dns, file: kubedns-svc.yml, type: svc }
|
- { name: kube-dns, module: template, file: kubedns-svc.yml, type: svc }
|
||||||
- { name: dns-autoscaler, file: dns-autoscaler-sa.yml, type: sa }
|
- { name: dns-autoscaler, module: copy, file: dns-autoscaler-sa.yml, type: sa }
|
||||||
- { name: dns-autoscaler, file: dns-autoscaler-clusterrole.yml, type: clusterrole }
|
- { name: dns-autoscaler, module: copy, file: dns-autoscaler-clusterrole.yml, type: clusterrole }
|
||||||
- { name: dns-autoscaler, file: dns-autoscaler-clusterrolebinding.yml, type: clusterrolebinding }
|
- { name: dns-autoscaler, module: copy, file: dns-autoscaler-clusterrolebinding.yml, type: clusterrolebinding }
|
||||||
- { name: dns-autoscaler, file: dns-autoscaler.yml, type: deployment }
|
- { name: dns-autoscaler, module: template, file: dns-autoscaler.yml, type: deployment }
|
||||||
register: kubedns_manifests
|
register: kubedns_manifests
|
||||||
when:
|
when:
|
||||||
- dns_mode in ['kubedns','dnsmasq_kubedns']
|
- dns_mode in ['kubedns','dnsmasq_kubedns']
|
||||||
|
|
Loading…
Reference in a new issue