PAS-X MES API Gateway Values Schema

Schema for PAS-X MES API Gateway configuration values

This schema defines the configuration block mes-api-gateway used to deploy the API Gateway in the PAS-X MES environment.

Examples

General Configuration

Example
# Ingress configuration (without TLS)
ingress:
  enabled: true
  host: "<ingress-host>"
  className: "<custom-class-name>"
  customAnnotations: {}

# Resources configuration
resources:
  requests:
    cpu: "100m"
    memory: "256Mi"
  limits:
    cpu: "300m"
    memory: "768Mi"

# Consumers
consumers:
  - username: "<consumer-name>"
    key: "<api-key>"

Additional Services

You can define additional services to register with API Gateway beyond the default services.

Example
additionalServices:
  - name: "<service-name>"
    url: "http://<internal-service-host>:<port>/<base-path>"

Additional Routes

You can define additional routes to register with API Gateway beyond the default routes.

Example
additionalRoutes:
  - name: "<route-name>"
    service: "<service-name>" # Reference to the service name defined in additionalServices
    paths:
      - "<path-for-the-endpoint-to-be-exposed>" # e.g., "/api/v1/barcodes"

Additional Upstreams

You can define additional upstreams to register with API Gateway beyond the default upstreams.

Example
additionalUpstreams:
  - id: <upstream-uuid>
    name: <upstream-name>

Additional Targets

You can define additional targets to register with API Gateway beyond the default targets.

Example
additionalTargets:
  - upstream: <upstream-uuid> # Reference to the upstream uuid defined in additionalUpstreams
    target: <internal-service-host>:<port>
    weight: 100

Additional Configuration

Additional declarative configuration that is passed directly to the API Gateway proxy.

Key

additionalConfiguration

Type

object

Required

No

Additional Routes

Additional routes to register with API Gateway beyond the default PAS-X MES routes

Key

additionalRoutes

Type

Array of object

Required

No

Route Name

Name of the additional API Gateway route.

Key

additionalRoutes[].name

Type

string

Required

Yes

Route Paths

List of request paths that should be matched by this route.

Key

additionalRoutes[].paths

Type

Array of string

Required

Yes

Service Reference

Name of the API Gateway service this route points to.

Key

additionalRoutes[].service

Type

string

Required

Yes

Additional Services

Additional services to register with API Gateway beyond the default PAS-X MES services

Key

additionalServices

Type

Array of object

Required

No

Service Name

Name of the additional API Gateway service.

Key

additionalServices[].name

Type

string

Required

Yes

Service URL

Backend URL of the additional API Gateway service.

Key

additionalServices[].url

Type

string

Required

Yes

Additional Targets

Additional targets to register with API Gateway beyond the default PAS-X MES targets

Key

additionalTargets

Type

Array of object

Required

No

Target Address

Backend address of the target in host:port format.

Key

additionalTargets[].target

Type

string

Required

Yes

Upstream Reference

ID of the upstream this target belongs to.

Key

additionalTargets[].upstream

Type

string

Required

Yes

Target Weight

Load balancing weight of the target.

Key

additionalTargets[].weight

Type

integer

Required

Yes

Additional Upstreams

Additional upstreams to register with API Gateway beyond the default PAS-X MES upstreams

Key

additionalUpstreams

Type

Array of object

Required

No

Upstream ID

Unique identifier of the additional API Gateway upstream.

Key

additionalUpstreams[].id

Type

string

Required

Yes

Upstream Name

Name of the additional API Gateway upstream.

Key

additionalUpstreams[].name

Type

string

Required

Yes

API Consumers

API consumers (users/systems) that can authenticate with the API Gateway

Key

consumers

Type

Array of object

Required

Yes

Consumer API Key

API key used by the consumer for authentication.

Key

consumers[].key

Type

string

Required

Yes

Consumer Username

Username of the API consumer.

Key

consumers[].username

Type

string

Required

Yes

Image configuration

Configuration for the images used in the deployment.

If all images are hosted in the same registry take this configuration to the global values file to avoid redundant configuration.

Key

image

Type

object

Required

Yes

Properties

List of Image Pull Secret Names

List of secret names used to authenticate when pulling images from a container registry

Key

image.pullSecretNames

Type

Array of string

Required

No

Image Registry

The image registry to pull the images from.

Key

image.registry

Type

string

Required

Yes

Image Repository

The image repository path to pull the images from.

Key

image.repository

Type

string

Required

No

Default

""

Flatten Image Names

If true, use only the last path segment of each image name under the configured registry and repository. Use this when the target registry requires flat image names.

Key

image.useFlattenedImageNames

Type

boolean

Required

No

Default

false

Ingress Settings

API Gateway ingress settings.

Key

ingress

Type

object

Required

No

Properties

Ingress ClassName

The name of the Ingress controller class that should be used to handle the Ingress. This typically corresponds to the controller you are using (e.g. kong).

Key

ingress.className

Type

string

Required

No

Default

kong

Custom Ingress annotations

Additional annotations to apply to the generated Ingress resource. Must be a map of string keys to string values.

Please consult your Ingress Controller documentation for the correct key/value syntax.

Key

ingress.customAnnotations

Type

object

Required

No

Enable Ingress

Enable Ingress for API Gateway.

Key

ingress.enabled

Type

boolean

Required

No

Default

true

Ingress Host

Host for the Ingress. If empty, no hostname is used.

Key

ingress.host

Type

string

Required

No

Default

""

Ingress Path

Path prefix for Ingress routing.

Key

ingress.path

Type

string

Required

No

Default

/api

TLS Settings

TLS configuration for the generated Kubernetes Ingress or OpenShift Route. Kubernetes Ingresses support an existing TLS Secret or automatic certificate provisioning via cert-manager. For OpenShift Routes, customers must provide and maintain the configured TLS Secret, either through explicit cert-manager Certificate resources or their own certificate management process.

If the same TLS configuration applies to multiple applications, consider moving it to the global values file to avoid redundancy.

Key

ingress.tls

Type

object

Required

No

Properties

cert-manager Settings

Optional cert-manager integration for automatic certificate issuance and renewal through Kubernetes Ingress resources. These settings do not configure certificate issuance for OpenShift Routes or create Certificate resources for them. On OpenShift, set enabled=false and manage the configured TLS Secret separately.

Key

ingress.tls.certManager

Type

object

Required

No

Properties

Enable cert-manager

Enable cert-manager integration for the generated Kubernetes Ingress. When enabled on Kubernetes, the TLS Secret name is <helm-chart-fullname>-tls. Set to false for OpenShift Routes, including when managing an explicit cert-manager Certificate resource. Enabling this setting on OpenShift does not request a certificate.

Key

ingress.tls.certManager.enabled

Type

boolean

Required

No

Default

false

cert-manager Issuer Reference

Issuer reference used for certificate issuance through annotations on the generated Kubernetes Ingress. Not used for OpenShift Route certificate issuance. Must be set when TLS and cert-manager integration are enabled.

Key

ingress.tls.certManager.issuerRef

Type

object

Required

No

Properties

Issuer Reference Kind

Kind of the cert-manager issuer resource for the Kubernetes Ingress certificate. Supported values are Issuer and ClusterIssuer. The chart adds the corresponding issuer annotation to Kubernetes Ingress resources, not OpenShift Routes.

Key

ingress.tls.certManager.issuerRef.kind

Type

string

Required

No

Default

  • ClusterIssuer

Enum

  • Issuer

  • ClusterIssuer

Issuer Reference Name

Name of the cert-manager issuer resource for the Kubernetes Ingress certificate. Must not be empty when TLS and cert-manager integration are enabled. This setting does not configure certificate issuance for OpenShift Routes.

Key

ingress.tls.certManager.issuerRef.name

Type

string

Required

No

Enable TLS

Enable TLS for the generated Kubernetes Ingress or OpenShift Route.

Key

ingress.tls.enabled

Type

boolean

Required

No

Default

false

OpenShift Settings

Configuration for the OpenShift ingress router ServiceAccount that must read TLS Secrets referenced by Route.spec.tls.externalCertificate.

Key

ingress.tls.openshift

Type

object

Required

No

Properties

Router ServiceAccount namespace

Namespace of the OpenShift ingress router ServiceAccount.

Key

ingress.tls.openshift.routerNamespace

Type

string

Required

No

Default

openshift-ingress

Router ServiceAccount name

Name of the OpenShift ingress router ServiceAccount.

Key

ingress.tls.openshift.routerServiceAccountName

Type

string

Required

No

Default

router

TLS Secret Name

Name of the Kubernetes TLS Secret used for the endpoint. On Kubernetes, required when certManager.enabled=false and ignored when certManager.enabled=true.

On OpenShift, always required when TLS is enabled. Customers must provide and maintain this Secret in the application’s namespace.

Key

ingress.tls.secretName

Type

string

Required

No

Pod Scheduling Configuration

Configuration for how pods are scheduled on nodes.

Take this configuration to the global values file to avoid redundant configuration and ensure consistency across all charts.

Key

podScheduling

Type

object

Required

No

Properties

Enable Pod Scheduling

Whether pod scheduling rules should be applied.

Key

podScheduling.enabled

Type

boolean

Required

No

Default

false

Pod Scheduling Strategy

Strategy for pod scheduling.

Key

podScheduling.strategy

Type

string

Required

No

Default

preferred-nodes

Enum

  • preferred-nodes

  • required-nodes

Resource Requests and Limits

API Gateway resources

Key

resources

Type

object

Required

No

Properties

Resource Limits

Maximum resources allowed for the API Gateway container

Key

resources.limits

Type

object

Required

No

Properties

CPU Resources

CPU resources.

Key

resources.limits.cpu

Type

string

Required

No

Default

300m

Memory Resources

Memory resources.

Key

resources.limits.memory

Type

string

Required

No

Default

768Mi

Resource Requests

Minimum resources requested by the API Gateway container

Key

resources.requests

Type

object

Required

No

Properties

CPU Resources

CPU resources.

Key

resources.requests.cpu

Type

string

Required

No

Default

100m

Memory Resources

Memory resources.

Key

resources.requests.memory

Type

string

Required

No

Default

256Mi

Service Account Configuration

Configuration for the service account.

Key

serviceAccount

Type

object

Required

No

Properties

Create Service Account

Whether to create a new service account.

Key

serviceAccount.create

Type

boolean

Required

No

Default

true

Service Account Name

The name of the service account to use. If not specified and serviceAccount.create is true, a service account will be created using the chart’s fully qualified name. If create is false and no name is specified, the default service account will be used.

Key

serviceAccount.name

Type

string

Required

No

Default

""