Skip to content

Commit

Permalink
add values for OVSDB_CON_TIMEOUT and OVSDB_INACTIVITY_TIMEOUT (#4568)
Browse files Browse the repository at this point in the history
* add values for OVSDB_CON_TIMEOUT and OVSDB_INACTIVITY_TIMEOUT

Signed-off-by: clyi <[email protected]>

* fix input param error

Signed-off-by: clyi <[email protected]>

---------

Signed-off-by: clyi <[email protected]>
  • Loading branch information
changluyi authored Oct 8, 2024
1 parent edd2ccf commit a676e63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/kube-ovn/templates/controller-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/kube-ovn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:-}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a676e63

Please sign in to comment.