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:

When using generic, review the complete ingress configuration before triggering the installation process. Adjust the configuration to match your selected Ingress Controller.

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 generic mode, a compatible ingress controller must still be installed in the cluster.

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.timeout supplies the backend timeout in milliseconds. The delivered default is 3060000, rendered as haproxy.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>/api Route rewrites requests to /block-direct-api. Blocked requests return 404 Not Found, rather than Kong’s 403 Forbidden.

  • ConfigService has allow-list Routes for the literal paths /configservice/ui and /configservice/vaadin. A catch-all /configservice Route 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

75 s

Maximum time to establish a connection to an upstream service. Values above 75 s are not supported by most load balancers.

Next-upstream timeout

0 (disabled)

Time limit for passing a failed request to the next server. Set to 0 to disable the limit and avoid premature failover during long-running requests.

Read timeout

3060 s (~51 min)

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

3120 s (~52 min)

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

1000 MB

Maximum size of an HTTP request body accepted by the ingress, including file uploads. If too low, large uploads result in 413 Payload Too Large errors.

ConfigService access control

Block all external paths to /configservice/ except /configservice/ui/ and /configservice/VAADIN/*

Prevents unauthenticated retrieval of service credentials from ConfigService endpoints. Unauthorized access to these endpoints must result in 403 Forbidden responses.

Important: The path must be configured as /configservice/VAADIN/* (uppercase VAADIN). PAS-X MES clients use this exact path, and some ingress controllers such as NGINX perform case-sensitive path matching.

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:

  • central service — path /central/ui

  • Cockpit UI (cui) — path /cockpit/ui

  • replenishment service — 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 kong. When Kubernetes Ingress resources use generic mode, this built-in configuration must be replaced with an equivalent implementation provided by the ingress controller used in the cluster.