Jochen Friedrich 2023-01-16 09:08:52 +01:00 committed by GitHub
parent 6b4bb2a121
commit 6f61f3d9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

View File

@ -55,3 +55,9 @@ kube_ovn_enable_ssl: false
## dpdk
kube_ovn_dpdk_enabled: false
## enable interconnection to an existing IC database server.
kube_ovn_ic_enable: false
kube_ovn_ic_autoroute: true
kube_ovn_ic_dbhost: "127.0.0.1"
kube_ovn_ic_zone: "kubernetes"

View File

@ -36,6 +36,11 @@ kube_ovn_central_ips: |-
{{ hostvars[item]['ip'] | default(fallback_ips[item]) }}{% if not loop.last %},{% endif %}
{%- endfor %}
kube_ovn_ic_enable: false
kube_ovn_ic_autoroute: true
kube_ovn_ic_dbhost: "127.0.0.1"
kube_ovn_ic_zone: "kubernetes"
# geneve or vlan
kube_ovn_network_type: geneve

View File

@ -608,3 +608,19 @@ spec:
ports:
- port: 10665
name: metrics
{% if kube_ovn_ic_enable %}
---
kind: ConfigMap
apiVersion: v1
metadata:
name: ovn-ic-config
namespace: kube-system
data:
enable-ic: "{{ kube_ovn_ic_enable | lower }}"
az-name: "{{ kube_ovn_ic_zone }}"
ic-db-host: "{{ kube_ovn_ic_dbhost }}"
ic-nb-port: "6645"
ic-sb-port: "6646"
gw-nodes: "{{ kube_ovn_central_hosts|join(',') }}"
auto-route: "{{ kube_ovn_ic_autoroute | lower }}"
{% endif %}