You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A route can front up to 4 services that handle the requests.
The load balancing strategy governs which endpoint gets each request.
When roundrobin is chosen, the portion of the requests that each
service handles is governed by the weight assigned to the service.
Each endpoint in the service gets a fraction of the service's requests
bug 1470350
https://bugzilla.redhat.com/show_bug.cgi?id=1470350
Code change is in origin PR 15309
openshift/origin#15309
|`*DEFAULT_CERTIFICATE*` | | The contents of a default certificate to use for routes that don't expose a TLS server cert; in PEM format.
265
-
|`*DEFAULT_CERTIFICATE_DIR*` | | A path to a directory that contains a file named *_tls.crt_*. If *_tls.crt_* is not a PEM file which also contains a private key, it is first combined with a file named tls.key in the same directory. The PEM-format contents are then used as the default certificate. Only used if `DEFAULT_CERTIFICATE` or `DEFAULT_CERTIFICATE_PATH` are not specified.
266
-
|`*DEFAULT_CERTIFICATE_PATH*` | | A path to default certificate to use for routes that don't expose a TLS server cert; in PEM format. Only used if `DEFAULT_CERTIFICATE` is not specified.
267
-
|`*EXTENDED_VALIDATION*` | `true` | If `true`, the router confirms that the certificate is structurally correct. It does not verify the certificate against any CA. Set `false` to turn off the tests.
268
-
|`*NAMESPACE_LABELS*` | | A label selector to apply to namespaces to watch, empty means all.
269
-
|`*PROJECT_LABELS*` | | A label selector to apply to projects to watch, emtpy means all.
270
-
|`*RELOAD_SCRIPT*` | | The path to the reload script to use to reload the router.
271
-
|`*ROUTER_ALLOWED_DOMAINS*` | | A comma-separated list of domains that the host name in a route can only be part of. Any subdomain in the domain can be used. Option `ROUTER_DENIED_DOMAINS` overrides any values given in this option. If set, everything outside of the allowed domains will be rejected.
272
-
|`*ROUTER_BACKEND_CHECK_INTERVAL*` | 5000ms | Length of time between subsequent "liveness" checks on backends. xref:time-units[(TimeUnits)]
273
-
|`*ROUTER_COMPRESSION_MIME*` | "text/html text/plain text/css" | A space separated list of mime types to compress.
274
-
|`*ROUTER_DEFAULT_CLIENT_TIMEOUT*`| 30s | Length of time within which a client has to acknowledge or send data. xref:time-units[(TimeUnits)]
275
-
|`*ROUTER_DEFAULT_CONNECT_TIMEOUT*`| 5s | The maximum connect time. xref:time-units[(TimeUnits)]
276
-
|`*ROUTER_DEFAULT_SERVER_TIMEOUT*`| 30s | Length of time within which a server has to acknowledge or send data. xref:time-units[(TimeUnits)]
277
-
|`*ROUTER_DEFAULT_TUNNEL_TIMEOUT*` | 1h | Length of time till which TCP or WebSocket connections will remain open. If you have websockets/tcp
264
+
|`DEFAULT_CERTIFICATE` | | The contents of a default certificate to use for routes that don't expose a TLS server cert; in PEM format.
265
+
|`DEFAULT_CERTIFICATE_DIR` | | A path to a directory that contains a file named *_tls.crt_*. If *_tls.crt_* is not a PEM file which also contains a private key, it is first combined with a file named tls.key in the same directory. The PEM-format contents are then used as the default certificate. Only used if `DEFAULT_CERTIFICATE` or `DEFAULT_CERTIFICATE_PATH` are not specified.
266
+
|`DEFAULT_CERTIFICATE_PATH` | | A path to default certificate to use for routes that don't expose a TLS server cert; in PEM format. Only used if `DEFAULT_CERTIFICATE` is not specified.
267
+
|`EXTENDED_VALIDATION` | `true` | If `true`, the router confirms that the certificate is structurally correct. It does not verify the certificate against any CA. Set `false` to turn off the tests.
268
+
|`NAMESPACE_LABELS` | | A label selector to apply to namespaces to watch, empty means all.
269
+
|`PROJECT_LABELS` | | A label selector to apply to projects to watch, emtpy means all.
270
+
|`RELOAD_SCRIPT` | | The path to the reload script to use to reload the router.
271
+
|`ROUTER_ALLOWED_DOMAINS` | | A comma-separated list of domains that the host name in a route can only be part of. Any subdomain in the domain can be used. Option `ROUTER_DENIED_DOMAINS` overrides any values given in this option. If set, everything outside of the allowed domains will be rejected.
272
+
|`ROUTER_BACKEND_CHECK_INTERVAL` | 5000ms | Length of time between subsequent "liveness" checks on backends. xref:time-units[(TimeUnits)]
273
+
|`ROUTER_COMPRESSION_MIME` | "text/html text/plain text/css" | A space separated list of mime types to compress.
274
+
|`ROUTER_DEFAULT_CLIENT_TIMEOUT`| 30s | Length of time within which a client has to acknowledge or send data. xref:time-units[(TimeUnits)]
275
+
|`ROUTER_DEFAULT_CONNECT_TIMEOUT`| 5s | The maximum connect time. xref:time-units[(TimeUnits)]
276
+
|`ROUTER_DEFAULT_SERVER_TIMEOUT`| 30s | Length of time within which a server has to acknowledge or send data. xref:time-units[(TimeUnits)]
277
+
|`ROUTER_DEFAULT_TUNNEL_TIMEOUT` | 1h | Length of time till which TCP or WebSocket connections will remain open. If you have websockets/tcp
278
278
connections (and any time HAProxy is reloaded), the old HAProxy processes
279
279
will "linger" around for that period. xref:time-units[(TimeUnits)]
280
-
|`*ROUTER_DENIED_DOMAINS*` | | A comma-separated list of domains that the host name in a route can not be part of. No subdomain in the domain can be used either. Overrides option `ROUTER_ALLOWED_DOMAINS`.
281
-
|`*ROUTER_ENABLE_COMPRESSION*`| | If `true` or `TRUE`, compress responses when possible.
282
-
|`*ROUTER_LOG_LEVEL*` | warning | The log level to send to the syslog server.
283
-
|`*ROUTER_MAX_CONNECTIONS*`| 20000 | Maximum number of concurrent connections.
284
-
|`*ROUTER_OVERRIDE_HOSTNAME*`| | If set `true`, override the spec.host value for a route with the template in `ROUTER_SUBDOMAIN`.
285
-
|`*ROUTER_SERVICE_HTTPS_PORT*` | 443 | Port to listen for HTTPS requests.
286
-
|`*ROUTER_SERVICE_HTTP_PORT*` | 80 | Port to listen for HTTP requests.
287
-
|`*ROUTER_SERVICE_NAME*` | public | The name that the router identifies itself in the in route status.
288
-
|`*ROUTER_CANONICAL_HOSTNAME*` | | The (optional) host name of the router shown in the in route status.
289
-
|`*ROUTER_SERVICE_NAMESPACE*` | | The namespace the router identifies itself in the in route status. Required if `ROUTER_SERVICE_NAME` is used.
290
-
|`*ROUTER_SERVICE_NO_SNI_PORT*` | 10443 | Internal port for some front-end to back-end communication (see note below).
291
-
|`*ROUTER_SERVICE_SNI_PORT*` | 10444 | Internal port for some front-end to back-end communication (see note below).
292
-
| `*ROUTER_SLOWLORIS_HTTP_KEEPALIVE*`| 300s | Set the maximum time to wait for a new HTTP request to appear. If this is set too low, it can confuse browsers and applications not expecting a small `keepalive` value. xref:time-units[(TimeUnits)]
293
-
|`*ROUTER_SLOWLORIS_TIMEOUT*` | 10s | Length of time the transmission of an HTTP request can take. xref:time-units[(TimeUnits)]
294
-
|`*ROUTER_SUBDOMAIN*`| | The template that should be used to generate the host name for a route without spec.host (e.g. ${name}-${namespace}.myapps.mycompany.com).
295
-
|`*ROUTER_SYSLOG_ADDRESS*` | | Address to send log messages. Disabled if empty.
296
-
|`*ROUTER_SYSLOG_FORMAT*` | | If set, override the default log format used by underlying router implementation. Its value should conform with underlying router implementation's specification.
297
-
|`*ROUTER_TCP_BALANCE_SCHEME*` | source | xref:load-balancing[Load-balancing strategy] for multiple endpoints for pass-through routes. Available options are `source`, `roundrobin`, or `leastconn`.
298
-
|`*ROUTER_LOAD_BALANCE_ALGORITHM*` | leastconn | xref:load-balancing[Load-balancing strategy] for routes with multiple endpoints. Available options are `source`, `roundrobin`, and `leastconn`.
280
+
|`ROUTER_DENIED_DOMAINS` | | A comma-separated list of domains that the host name in a route can not be part of. No subdomain in the domain can be used either. Overrides option `ROUTER_ALLOWED_DOMAINS`.
281
+
|`ROUTER_ENABLE_COMPRESSION`| | If `true` or `TRUE`, compress responses when possible.
282
+
|`ROUTER_LOG_LEVEL` | warning | The log level to send to the syslog server.
283
+
|`ROUTER_MAX_CONNECTIONS`| 20000 | Maximum number of concurrent connections.
284
+
|`ROUTER_OVERRIDE_HOSTNAME`| | If set `true`, override the spec.host value for a route with the template in `ROUTER_SUBDOMAIN`.
285
+
|`ROUTER_SERVICE_HTTPS_PORT` | 443 | Port to listen for HTTPS requests.
286
+
|`ROUTER_SERVICE_HTTP_PORT` | 80 | Port to listen for HTTP requests.
287
+
|`ROUTER_SERVICE_NAME` | public | The name that the router identifies itself in the in route status.
288
+
|`ROUTER_CANONICAL_HOSTNAME` | | The (optional) host name of the router shown in the in route status.
289
+
|`ROUTER_SERVICE_NAMESPACE` | | The namespace the router identifies itself in the in route status. Required if `ROUTER_SERVICE_NAME` is used.
290
+
|`ROUTER_SERVICE_NO_SNI_PORT` | 10443 | Internal port for some front-end to back-end communication (see note below).
291
+
|`ROUTER_SERVICE_SNI_PORT` | 10444 | Internal port for some front-end to back-end communication (see note below).
292
+
|`ROUTER_SLOWLORIS_HTTP_KEEPALIVE`| 300s | Set the maximum time to wait for a new HTTP request to appear. If this is set too low, it can confuse browsers and applications not expecting a small `keepalive` value. xref:time-units[(TimeUnits)]
293
+
|`ROUTER_SLOWLORIS_TIMEOUT` | 10s | Length of time the transmission of an HTTP request can take. xref:time-units[(TimeUnits)]
294
+
|`ROUTER_SUBDOMAIN`| | The template that should be used to generate the host name for a route without spec.host (e.g. ${name}-${namespace}.myapps.mycompany.com).
295
+
|`ROUTER_SYSLOG_ADDRESS` | | Address to send log messages. Disabled if empty.
296
+
|`ROUTER_SYSLOG_FORMAT` | | If set, override the default log format used by underlying router implementation. Its value should conform with underlying router implementation's specification.
297
+
|`ROUTER_TCP_BALANCE_SCHEME` | source | xref:load-balancing[Load-balancing strategy] for multiple endpoints for pass-through routes. Available options are `source`, `roundrobin`, or `leastconn`.
298
+
|`ROUTER_LOAD_BALANCE_ALGORITHM` | leastconn | xref:load-balancing[Load-balancing strategy] for routes with multiple endpoints. Available options are `source`, `roundrobin`, and `leastconn`.
299
299
//|`*ROUTE_FIELDS*` | | A field selector to apply to routes to watch, empty means all. (FUTURE: it does not have complete support we need in upstream/k8s.)
300
-
|`*ROUTE_LABELS*` | | A label selector to apply to the routes to watch, empty means all.
301
-
|`*STATS_PASSWORD*` | | The password needed to access router stats (if the router implementation supports it).
302
-
|`*STATS_PORT*` | | Port to expose statistics on (if the router implementation supports it). If not set, stats are not exposed.
303
-
|`*STATS_USERNAME*` | | The user name needed to access router stats (if the router implementation supports it).
304
-
|`*TEMPLATE_FILE*` | `/var/lib/haproxy/conf/custom/` `haproxy-config-custom.template` | The path to the HAProxy template file (in the container image).
305
-
|`*RELOAD_INTERVAL*` | 12s | The minimum frequency the router is allowed to reload to accept new changes. xref:time-units[(TimeUnits)]
306
-
|`*ROUTER_USE_PROXY_PROTOCOL*`| | When set to `true` or `TRUE`, HAProxy expects incoming connections to use the `PROXY` protocol on port 80 or port 443. The source IP address can pass through a load balancer if the load balancer supports the protocol, for example Amazon ELB.
307
-
|`*ROUTER_ALLOW_WILDCARD_ROUTES*`| | When set to `true` or `TRUE`, any routes with a wildcard policy of `Subdomain` that pass the router admission checks will be serviced by the HAProxy router.
308
-
|`*ROUTER_DISABLE_NAMESPACE_OWNERSHIP_CHECK*` | | Set to `true` to relax the namespace ownership policy.
|`*ROUTER_CIPHERS*` | intermediate | Specify the set of xref:ciphers[ciphers] supported by bind.
300
+
|`ROUTE_LABELS` | | A label selector to apply to the routes to watch, empty means all.
301
+
|`STATS_PASSWORD` | | The password needed to access router stats (if the router implementation supports it).
302
+
|`STATS_PORT` | | Port to expose statistics on (if the router implementation supports it). If not set, stats are not exposed.
303
+
|`STATS_USERNAME` | | The user name needed to access router stats (if the router implementation supports it).
304
+
|`TEMPLATE_FILE` | `/var/lib/haproxy/conf/custom/` `haproxy-config-custom.template` | The path to the HAProxy template file (in the container image).
305
+
|`RELOAD_INTERVAL` | 12s | The minimum frequency the router is allowed to reload to accept new changes. xref:time-units[(TimeUnits)]
306
+
|`ROUTER_USE_PROXY_PROTOCOL`| | When set to `true` or `TRUE`, HAProxy expects incoming connections to use the `PROXY` protocol on port 80 or port 443. The source IP address can pass through a load balancer if the load balancer supports the protocol, for example Amazon ELB.
307
+
|`ROUTER_ALLOW_WILDCARD_ROUTES`| | When set to `true` or `TRUE`, any routes with a wildcard policy of `Subdomain` that pass the router admission checks will be serviced by the HAProxy router.
308
+
|`ROUTER_DISABLE_NAMESPACE_OWNERSHIP_CHECK` | | Set to `true` to relax the namespace ownership policy.
0 commit comments