diff --git a/charts/kube-ovn/templates/controller-deploy.yaml b/charts/kube-ovn/templates/controller-deploy.yaml index cd8e1b3b717..06fdba72d95 100644 --- a/charts/kube-ovn/templates/controller-deploy.yaml +++ b/charts/kube-ovn/templates/controller-deploy.yaml @@ -137,6 +137,8 @@ spec: - --secure-serving={{- .Values.func.SECURE_SERVING }} - --enable-ovn-ipsec={{- .Values.func.ENABLE_OVN_IPSEC }} - --enable-anp={{- .Values.func.ENABLE_ANP }} + - --ovsdb-con-timeout={{- .Values.func.OVSDB_CON_TIMEOUT }} + - --ovsdb-inactivity-timeout={{- .Values.func.OVSDB_INACTIVITY_TIMEOUT }} securityContext: runAsUser: {{ include "kubeovn.runAsUser" . }} privileged: false diff --git a/charts/kube-ovn/values.yaml b/charts/kube-ovn/values.yaml index d8215627f21..5e5f71e135d 100644 --- a/charts/kube-ovn/values.yaml +++ b/charts/kube-ovn/values.yaml @@ -76,6 +76,8 @@ func: ENABLE_OVN_IPSEC: false ENABLE_ANP: false SET_VXLAN_TX_OFF: false + OVSDB_CON_TIMEOUT: 3 + OVSDB_INACTIVITY_TIMEOUT: 10 ipv4: POD_CIDR: "10.16.0.0/16" diff --git a/dist/images/install.sh b/dist/images/install.sh index e27a59e7d59..18309f74a25 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -42,6 +42,8 @@ SECURE_SERVING=${SECURE_SERVING:-false} ENABLE_OVN_IPSEC=${ENABLE_OVN_IPSEC:-false} ENABLE_ANP=${ENABLE_ANP:-false} SET_VXLAN_TX_OFF=${SET_VXLAN_TX_OFF:-false} +OVSDB_CON_TIMEOUT=${OVSDB_CON_TIMEOUT:-3} +OVSDB_INACTIVITY_TIMEOUT=${OVSDB_INACTIVITY_TIMEOUT:-10} # debug DEBUG_WRAPPER=${DEBUG_WRAPPER:-} @@ -4302,6 +4304,8 @@ spec: - --enable-ovn-ipsec=$ENABLE_OVN_IPSEC - --secure-serving=${SECURE_SERVING} - --enable-anp=$ENABLE_ANP + - --ovsdb-con-timeout=$OVSDB_CON_TIMEOUT + - --ovsdb-inactivity-timeout=$OVSDB_INACTIVITY_TIMEOUT securityContext: runAsUser: ${RUN_AS_USER} privileged: false