Skip to content

[SRVKS-1303] haproxy.router.openshift.io/timeout config for auto-created routes #93501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: serverless-docs-main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ If you want to configure a Knative service to use your TLS certificate on {ocp-p
When you complete the following procedure, the default {ocp-product-title} route in the `knative-serving-ingress` namespace is not created. However, the Knative route for the application is still created in this namespace.
====

include::modules/serverless-openshift-routes.adoc[leveloffset=+1]
include::modules/serverless-openshift-routes.adoc[leveloffset=+1]

[NOTE]
====
You can also set the default timeout value for auto-generated {ocp-product-title} routes. See xref:../../config-applications/modules/configuring-default-route-timeouts-globally.adoc[Configuring the default route timeouts].
====
22 changes: 20 additions & 2 deletions modules/configuring-default-route-timeouts-globally.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,33 @@ You can configure the route timeouts globally by updating the `ROUTE_HAPROXY_TIM

.Procedure

. Set the value of `ROUTE_HAPROXY_TIMEOUT` in your subscription to your required timeout in seconds by running the following command:
. Set the value of `ROUTE_HAPROXY_TIMEOUT` in your subscription to your required timeout in seconds by running the following command. Note that this causes pods to be redeployed in the `openshift-serverless` namespace.
+
.Setting the `ROUTE_HAPROXY_TIMEOUT` value to 900 seconds
[source,terminal]
----
$ oc patch subscription.operators.coreos.com serverless-operator -n openshift-serverless --type='merge' -p '{"spec": {"config": {"env": [{"name": "ROUTE_HAPROXY_TIMEOUT", "value": "900"}]}}}'
----
+
The `ROUTE_HAPROXY_TIMEOUT` environment variable is managed by the Serverless Operator and by default is set to `600`. Set the value of `ROUTE_HAPROXY_TIMEOUT` in your subscription to your required timeout in seconds by running the following command. Note that this causes pods to be redeployed in the `openshift-serverless` namespace.
Alternatively, you can set the value of `ROUTE_HAPROXY_TIMEOUT` in your subscription directly:
+
.A subscription definition with `ROUTE_HAPROXY_TIMEOUT` set to 900 seconds
[source,yaml]
----
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
#...
spec:
channel: stable
config:
env:
- name: ROUTE_HAPROXY_TIMEOUT
value: '900'
#...
----
+
The `ROUTE_HAPROXY_TIMEOUT` environment variable is managed by the Serverless Operator and by default is set to `600`.
+
[NOTE]
====
Expand Down