diff --git a/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl b/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl index b19bb0a72..2e62116ce 100644 --- a/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl +++ b/openvswitch/templates/bin/_openvswitch-db-server.sh.tpl @@ -42,6 +42,9 @@ function start () { --pidfile=${OVS_PID} \ --remote=punix:${OVS_SOCKET} \ --remote=db:Open_vSwitch,Open_vSwitch,manager_options \ +{{- if .Values.conf.openvswitch_db_server.ptcp_port }} + --remote=ptcp:{{ .Values.conf.openvswitch_db_server.ptcp_port }} \ +{{- end }} --private-key=db:Open_vSwitch,SSL,private_key \ --certificate=db:Open_vSwitch,SSL,certificate \ --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert diff --git a/openvswitch/values.yaml b/openvswitch/values.yaml index cf3e953e2..bb69740b5 100644 --- a/openvswitch/values.yaml +++ b/openvswitch/values.yaml @@ -148,3 +148,7 @@ manifests: daemonset_ovs_vswitchd: true job_image_repo_sync: true network_policy: false + +conf: + openvswitch_db_server: + ptcp_port: null