2022-01-05 18:26:32 +08:00
|
|
|
---
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Ovn4nfv | Label control-plane node
|
2022-01-05 18:26:32 +08:00
|
|
|
command: >-
|
|
|
|
{{ kubectl }} label --overwrite node {{ groups['kube_control_plane'] | first }} ovn4nfv-k8s-plugin=ovn-control-plane
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Ovn4nfv | Create ovn4nfv-k8s manifests
|
2022-01-05 18:26:32 +08:00
|
|
|
template:
|
|
|
|
src: "{{ item.file }}.j2"
|
|
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
2024-07-26 09:42:20 +08:00
|
|
|
mode: "0644"
|
2022-01-05 18:26:32 +08:00
|
|
|
with_items:
|
|
|
|
- {name: ovn-daemonset, file: ovn-daemonset.yml}
|
|
|
|
- {name: ovn4nfv-k8s-plugin, file: ovn4nfv-k8s-plugin.yml}
|
|
|
|
register: ovn4nfv_node_manifests
|