2019-07-31 11:10:20 +08:00
|
|
|
---
|
2020-07-28 16:39:08 +08:00
|
|
|
- name: Kube-OVN | Label ovn-db node
|
2022-12-28 12:51:27 +08:00
|
|
|
command: "{{ kubectl }} label --overwrite node {{ item }} kube-ovn/role=master"
|
|
|
|
loop: "{{ kube_ovn_central_hosts }}"
|
2019-07-31 11:10:20 +08:00
|
|
|
when:
|
2021-03-24 08:26:05 +08:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
2019-07-31 11:10:20 +08:00
|
|
|
|
|
|
|
- name: Kube-OVN | Create Kube-OVN manifests
|
|
|
|
template:
|
|
|
|
src: "{{ item.file }}.j2"
|
|
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
2022-01-09 17:51:12 +08:00
|
|
|
mode: 0644
|
2019-07-31 11:10:20 +08:00
|
|
|
with_items:
|
|
|
|
- {name: kube-ovn-crd, file: cni-kube-ovn-crd.yml}
|
|
|
|
- {name: ovn, file: cni-ovn.yml}
|
|
|
|
- {name: kube-ovn, file: cni-kube-ovn.yml}
|
|
|
|
register: kube_ovn_node_manifests
|