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
# 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.
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.
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 Configuration
Additional declarative configuration that is passed directly to the API Gateway proxy.
Key |
|
Type |
object |
Required |
No |
Additional Routes
Additional routes to register with API Gateway beyond the default PAS-X MES routes
Key |
|
Type |
Array of object |
Required |
No |
Route Name
Name of the additional API Gateway route.
Key |
|
Type |
string |
Required |
Yes |
Additional Services
Additional Targets
Additional targets to register with API Gateway beyond the default PAS-X MES targets
Key |
|
Type |
Array of object |
Required |
No |
Target Address
Backend address of the target in host:port format.
Key |
|
Type |
string |
Required |
Yes |
Additional Upstreams
API Consumers
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 |
|
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 |
|
Type |
Array of string |
Required |
No |
Image Registry
The image registry to pull the images from.
Key |
|
Type |
string |
Required |
Yes |
Ingress Settings
API Gateway ingress settings.
Key |
|
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 |
|
Type |
string |
Required |
No |
Default |
|
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 |
|
Type |
object |
Required |
No |
Enable Ingress
Enable Ingress for API Gateway.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
Ingress Host
Host for the Ingress. If empty, no hostname is used.
Key |
|
Type |
string |
Required |
No |
Default |
"" |
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 |
|
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 |
|
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 |
|
Type |
boolean |
Required |
No |
Default |
|
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 |
|
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 |
|
Type |
string |
Required |
No |
Default |
|
Enum |
|
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 |
|
Type |
string |
Required |
No |
Enable TLS
Enable TLS for the generated Kubernetes Ingress or OpenShift Route.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
OpenShift Settings
Configuration for the OpenShift ingress router ServiceAccount that must read TLS Secrets referenced by Route.spec.tls.externalCertificate.
Key |
|
Type |
object |
Required |
No |
Properties |
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 |
|
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 |
|
Type |
object |
Required |
No |
Properties |
Resource Requests and Limits
API Gateway resources
Key |
|
Type |
object |
Required |
No |
Properties |
Resource Limits
Maximum resources allowed for the API Gateway container
Key |
|
Type |
object |
Required |
No |
Properties |
Service Account Configuration
Configuration for the service account.
Key |
|
Type |
object |
Required |
No |
Properties |
Create Service Account
Whether to create a new service account.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
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 |
|
Type |
string |
Required |
No |
Default |
"" |