Cluster support for ovn-central. (#9596)

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.
This commit is contained in:
Jochen Friedrich
2022-12-28 05:51:27 +01:00
committed by GitHub
parent ab80342750
commit 136f14dec4
3 changed files with 13 additions and 4 deletions

View File

@@ -28,8 +28,13 @@ kube_ovn_dpdk_node_memory_request: 2Gi
kube_ovn_dpdk_node_cpu_limit: 1000m
kube_ovn_dpdk_node_memory_limit: 2Gi
kube_ovn_central_replics: 1
kube_ovn_controller_replics: 1
kube_ovn_central_hosts: "{{ groups['kube_control_plane'] }}"
kube_ovn_central_replics: "{{ kube_ovn_central_hosts | length }}"
kube_ovn_controller_replics: "{{ kube_ovn_central_hosts | length }}"
kube_ovn_central_ips: |-
{% for item in kube_ovn_central_hosts -%}
{{ hostvars[item]['ip'] | default(fallback_ips[item]) }}{% if not loop.last %},{% endif %}
{%- endfor %}
# geneve or vlan
kube_ovn_network_type: geneve