Ingress Controller
An ingress controller or OpenShift router must be present in the Kubernetes cluster before deploying PAS-X MES. The ingress controller is responsible for routing external HTTP(S) traffic into the cluster and is a mandatory prerequisite — deployment will not function correctly without one.
On Kubernetes clusters other than OpenShift, the ingress controller mode is configured through the Instance and pasx-argo-workflows ingress configuration using the controller property.
The same value must be used in both configurations.
Supported values are:
-
kong -
generic
For these Kubernetes Ingress configurations, the default value is kong.
Unless configured otherwise, PAS-X MES SmartInstall therefore assumes that Kong is installed and uses the
delivered Kong-specific configuration.
Ingress configuration, including the controller property, is defined in the following value schemas:
-
Instance— PAS-X Instance Values Schema -
pasx-argo-workflows— PAS-X Argo Workflows Values Schema
|
When using |
Supported Kubernetes Ingress controller modes
These modes apply to Kubernetes Ingress resources, not to OpenShift Route resources.
For OpenShift, see OpenShift Routes.
kong
kong is the default ingress controller mode.
In this mode, PAS-X MES SmartInstall configures all required Kong-specific settings automatically during deployment, including:
-
Timeouts
-
Sticky session handling
-
Request body size limits
-
API-path blocking (including ConfigService credential endpoint protection)
-
Kong-specific service and ingress annotations
-
Kong-specific dependent resources such as plugins and upstream policies
generic
generic is the controller-agnostic mode.
In this mode, PAS-X MES still creates Kubernetes Ingress resources, but it does not automatically configure
Kong-specific settings or Kong-specific dependent resources.
This mode is intended for environments where another ingress controller is used. The delivered values are based on the default Kong configuration and are not translated for the selected controller. Review the complete ingress configuration and adapt it to the selected ingress controller and the requirements of your environment.
When using generic mode, the following applies:
-
Kong-specific automatic ingress configuration shipped with PAS-X MES is not applied.
-
Required settings such as timeouts, sticky sessions, body size limits, backend protocol handling, and API-path restrictions must be configured using the native mechanism of the ingress controller used in the cluster.
-
Resources that require controller-specific annotations must be adjusted according to the selected ingress controller.
-
If the selected ingress controller depends on additional Custom Resource Definitions (CRDs), those CRDs must be installed in the cluster before deploying PAS-X MES.
|
When using |
OpenShift Routes
The MES Operator detects OpenShift through the security.openshift.io/v1 API group and version.
Helm templates use the same API group during rendering.
For ingress-enabled GenericService resources, the MES Operator creates OpenShift Route resources instead of Kubernetes Ingress resources.
OpenShift Routes use the HAProxy router. No controller setting is required.
The following behavior applies to operator-managed GenericService Routes:
-
ingress.haproxy.timeoutConfiguration.timeoutsupplies the backend timeout in milliseconds. The delivered default is3060000, rendered ashaproxy.router.openshift.io/timeout: 3060000ms(51 minutes). -
Sticky paths retain the HAProxy router’s cookie-based session affinity. Non-sticky paths receive
haproxy.router.openshift.io/disable_cookies: "true". -
For each ordinary service path, a more-specific
<service-path>/apiRoute rewrites requests to/block-direct-api. Blocked requests return404 Not Found, rather than Kong’s403 Forbidden. -
ConfigService has allow-list Routes for the literal paths
/configservice/uiand/configservice/vaadin. A catch-all/configserviceRoute rewrites other requests to/block-direct-api.
Required Kubernetes Ingress settings
The ingress controller must support the following capabilities.
-
For
kong, these settings are applied automatically during deployment. -
For
generic, they must be configured manually on the ingress controller used in the cluster.
The table lists the expected values applied in kong mode.
In generic mode, configure your ingress controller to meet these targets (or equivalent behavior).
| Setting | Expected value/outcome | Description |
|---|---|---|
Connection timeout |
|
Maximum time to establish a connection to an upstream service.
Values above |
Next-upstream timeout |
|
Time limit for passing a failed request to the next server.
Set to |
Read timeout |
|
Maximum time between two successive reads of a response from an upstream service. If no data is received within this time the connection is closed. |
Send / write timeout |
|
Maximum time between two successive writes of a request to an upstream service. If no data is sent within this time the connection is closed. |
Maximum request body size |
|
Maximum size of an HTTP request body accepted by the ingress, including file uploads.
If too low, large uploads result in |
ConfigService access control |
Block all external paths to |
Prevents unauthenticated retrieval of service credentials from ConfigService endpoints. Unauthorized access to these endpoints must result in Important: The path must be configured as |
Session Stickiness
PAS-X MES requires cookie-based session stickiness for several services. The ingress controller or OpenShift router must support this capability for any replicated PAS-X MES deployment, for example:
-
centralservice — path/central/ui -
Cockpit UI (
cui) — path/cockpit/ui -
replenishmentservice — path/replenishment
The ingress controller must ensure that requests for sticky-session-enabled paths are routed consistently to the same backend replica.
In kong mode, PAS-X MES provides built-in sticky-session handling.
For OpenShift GenericService Routes, the operator retains router cookie affinity on sticky paths as described in OpenShift Routes.
For Kubernetes Ingress resources in generic mode, an equivalent sticky-session configuration must be provided using the selected
ingress controller’s native mechanism.
|
If session stickiness is not configured correctly, user sessions will be distributed across different pod replicas. Because session state is not shared across replicas, users will lose session state unexpectedly (e.g. being logged out or losing in-progress work). Multi-instance (HA) deployments will fail intermittently. |
|
PAS-X MES ships with built-in sticky session configuration for |