kubeasz/roles/cluster-addon/tasks/coredns.yml

10 lines
295 B
YAML
Raw Normal View History

2021-01-11 19:02:34 +08:00
- name: 准备 DNS的部署文件
template: src=dns/coredns.yaml.j2 dest={{ cluster_dir }}/yml/coredns.yaml
run_once: true
connection: local
- name: 创建coredns部署
shell: "{{ base_dir }}/bin/kubectl apply -f {{ cluster_dir }}/yml/coredns.yaml"
run_once: true
connection: local