c12s-kubespray/roles/network_plugin/kube-ovn/tasks/main.yml
Jochen Friedrich 9477255fca Cluster support for ovn-central.
Without minimal cluster configuration, even on a one node control plane,
the health check of the ovn-cental container always fails as it queries the
cluster/status.
2022-12-20 16:59:15 +00:00

17 lines
572 B
YAML

---
- name: Kube-OVN | Label ovn-db node
command: "{{ kubectl }} label --overwrite node {{ item }} kube-ovn/role=master"
loop: "{{ kube_ovn_central_hosts }}"
when:
- inventory_hostname == groups['kube_control_plane'][0]
- name: Kube-OVN | Create Kube-OVN manifests
template:
src: "{{ item.file }}.j2"
dest: "{{ kube_config_dir }}/{{ item.file }}"
mode: 0644
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