From bbcd10ea92a76a9af157bc84e2e7a7af0207a815 Mon Sep 17 00:00:00 2001 From: Jochen Friedrich Date: Mon, 19 Dec 2022 13:37:33 +0000 Subject: [PATCH] Support OVN Interconnect --- roles/network_plugin/kube-ovn/defaults/main.yml | 5 +++++ .../kube-ovn/templates/cni-kube-ovn.yml.j2 | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/roles/network_plugin/kube-ovn/defaults/main.yml b/roles/network_plugin/kube-ovn/defaults/main.yml index 430f69829..88a1908c9 100644 --- a/roles/network_plugin/kube-ovn/defaults/main.yml +++ b/roles/network_plugin/kube-ovn/defaults/main.yml @@ -31,6 +31,11 @@ kube_ovn_dpdk_node_memory_limit: 2Gi kube_ovn_central_replics: 1 kube_ovn_controller_replics: 1 +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 diff --git a/roles/network_plugin/kube-ovn/templates/cni-kube-ovn.yml.j2 b/roles/network_plugin/kube-ovn/templates/cni-kube-ovn.yml.j2 index c6eacc128..156f9505a 100644 --- a/roles/network_plugin/kube-ovn/templates/cni-kube-ovn.yml.j2 +++ b/roles/network_plugin/kube-ovn/templates/cni-kube-ovn.yml.j2 @@ -608,3 +608,17 @@ spec: ports: - port: 10665 name: metrics +--- +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 }}"