PAS-X RabbitMQ Cluster Values Schema

Schema for PAS-X RabbitMQ Cluster values

This configuration defines values for setting up RabbitMQ in the PAS-X MES system environment.

The chart mainly creates and configures a RabbitmqCluster custom resource (CR) to manage the RabbitMQ cluster. Additionally, it creates other resources such as an Ingress to expose the RabbitMQ Management UI.

Examples

General Configuration

Example configuration
# Number of RabbitMQ replicas
replicas: 3

# Service configuration for RabbitMQ
service:
  # Service type for RabbitMQ services (ClusterIP, NodePort, LoadBalancer)
  type: NodePort
  # NodePorts for RabbitMQ AMQP(S) services
  ports:
    amqpNodePort: 30672       # AMQP   / 5672
    amqpsNodePort: 30671      # AMQPS  / 5671

# Resource requests and limits for RabbitMQ pods
resources:
  cpu: "1"
  memory: "2Gi"

# Storage configuration for RabbitMQ data
persistence:
  className: "<custom-class-name>"

# RabbitMQ user authentication settings
auth:
  credentials:
    # Name of a pre-existing Kubernetes Secret containing the RabbitMQ credentials
    secretName: "rabbitmq-default-user"
  tls:
    # TLS configuration for RabbitMQ communication
    enabled: true
    # Kubernetes Secret containing the TLS certificates
    secretName: "rabbitmq-tls-secret"

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

Ingress Configuration

TLS Configuration

Kubernetes Ingress

For Kubernetes Ingress only, choose either automatic issuance using certManager.issuerRef or a separately managed TLS Secret. Do not combine these chart configuration methods; a separately managed Secret can itself be issued by cert-manager.

If the same TLS configuration (same secret references or cert-manager settings) applies to all Ingresses in the installation, consider moving this configuration to the global values file to avoid redundancy.

Example - Additional Configuration to enable Kubernetes Ingress TLS using cert-manager (ClusterIssuer)
ingress:
  tls:
    enabled: true
    certManager:
      enabled: true
      issuerRef:
        name: "<cert-manager-cluster-issuer-name>"
        kind: "ClusterIssuer"
Example - Additional Configuration to enable Kubernetes Ingress TLS using cert-manager (Issuer)
ingress:
  tls:
    enabled: true
    certManager:
      enabled: true
      issuerRef:
        name: "<cert-manager-issuer-name>"
        kind: "Issuer"
Example - Additional Configuration to enable Ingress TLS using a pre-existing Secret (cert-manager disabled)
ingress:
  tls:
    enabled: true
    secretName: "<tls-secret-name>"
    certManager:
      enabled: false
OpenShift Routes

On OpenShift, provide an explicit ingress.tls.secretName and disable chart-managed automatic issuance. The customer can manage explicit cert-manager Certificate resources to issue and renew the Secret, or provision and renew it manually. Certificate issuance is separate from Route configuration; do not use cert-manager issuer annotations on Routes. Route references the Secret through spec.tls.externalCertificate; the Secret must be in the same namespace as the Route and readable by the OpenShift router ServiceAccount. Use ingress.tls.openshift.routerServiceAccountName and routerNamespace if the router identity differs from the defaults. This configuration is separate from RabbitMQ communication TLS under auth.tls.

Example - OpenShift Route TLS using a separately managed Secret
ingress:
  enabled: true
  tls:
    enabled: true
    secretName: "<tls-secret-name>"
    certManager:
      enabled: false

RabbitMQ Communication TLS

Example - Additional Configuration to enable RabbitMQ communication TLS using a pre-existing Secret (can be from cert-manager)
service:
  type: NodePort
  ports:
    amqpNodePort: 30672
    amqpsNodePort: 30671

auth:
  tls:
    enabled: true
    secretName: "<tls-secret-name>"
Example - Additional Configuration to enable RabbitMQ communication TLS using a self-signed certificate generated by SmartInstall (validity of 1 year)
service:
  type: NodePort
  ports:
    amqpNodePort: 30672
    amqpsNodePort: 30671

auth:
  tls:
    enabled: true
    autoGenerated: true

Logging and Additional RabbitMQ Configuration

Example - Configure console log level
# RabbitMQ logging settings
log:
  # Console log level (debug, info, warning, error, critical, none)
  level: "info"
Example - Add custom RabbitMQ configuration parameters
# Additional RabbitMQ configuration as key-value pairs
# These are passed directly to RabbitMQ's additionalConfig
additionalConfig:
  # Default max_message_size (128MB) supports large MBR imports
  max_message_size: "134217728"
  # Example: Set file log level separately from console
  log.file.level: "error"
  # Example: Configure consumer timeout (in milliseconds)
  consumer_timeout: "1800000"

The additionalConfig values are merged with defaults. The default includes max_message_size=134217728 (128MB) to support large MBR imports after RabbitMQ 4.0 reduced the default to 16MB.

Pod Scheduling Configuration

If the same Pod scheduling configuration applies to all Helm Charts in the installation, consider moving this configuration to the global values file to avoid redundancy.

Example - Pod Scheduling configuration
podScheduling:
  enabled: false
  strategy: "preferred-nodes"

Additional RabbitMQ Configuration

Additional RabbitMQ configuration parameters as key-value pairs. These are passed directly to RabbitMQ additionalConfig to support large MBR imports. Can also be used for additional log settings like log.file.level.

Key

additionalConfig

Type

object

Required

No

Default

  • max_message_size: 134217728

Authentication Settings

RabbitMQ user authentication settings.

Key

auth

Type

object

Required

Yes

Properties

User Credentials

Reference to Kubernetes Secret holding RabbitMQ admin credentials.

Key

auth.credentials

Type

object

Required

No

Properties

Secret reference for RabbitMQ user credentials

Pre-existing Kubernetes secret with RabbitMQ admin credentials.

Key

auth.credentials.secretName

Type

string

Required

Yes

Min length

1

Broker TLS Settings

TLS configuration for the messaging broker listeners (e.g. AMQPS).

Key

auth.tls

Type

object

Required

No

Properties

Auto-generated self-signed TLS certificates

Generate automatically self-signed TLS certificates. Both the CA and the certificate will have 1 year of validity after installation.

Key

auth.tls.autoGenerated

Type

boolean

Required

No

Default

false

Enable broker TLS

Enable TLS on the broker listeners. When enabled, a TLS-capable Secret must be referenced via auth.tls.secretName or set to be automatically generated via auth.tls.autoGenerated=true.

Key

auth.tls.enabled

Type

boolean

Required

No

Default

false

Broker TLS Secret Name

Name of an existing Kubernetes TLS Secret containing tls.crt and tls.key for the broker server certificate.

Key

auth.tls.secretName

Type

string

Required

No

Cluster name

The name for the cluster and its resources.

Key

fullnameOverride

Type

string

Required

No

Default

rabbitmq

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

RabbitMQ 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 RabbitMQ management UI.

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 used for routing requests to the RabbitMQ management UI via the Ingress. If a custom path is defined, it must include a trailing /, for example /custompath/. The trailing slash is required because the value is also used as the RabbitMQ management.path_prefix setting, which expects the prefix to end with /.

Key

ingress.path

Type

string

Required

No

Default

/rabbitmq/

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

Logging Configuration

RabbitMQ logging settings.

Key

log

Type

object

Required

No

Properties

Console Log Level

Log level for console output.

Key

log.level

Type

string

Required

No

Default

info

Enum

  • debug

  • info

  • warning

  • error

  • critical

  • none

Persistence Storage Settings

RabbitMQ cluster storage settings.

Key

persistence

Type

object

Required

No

Properties

Storage Class Name

Storage class to use for PVC. If not set, the default storage class will be used.

Key

persistence.className

Type

string

Required

No

Default

""

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

Number of rabbitmq cluster replicas

The number of replicas for the rabbitmq cluster.

Key

replicas

Type

integer

Required

No

Default

3

Resource Requests and Limits

RabbitMQ Cluster resources

Key

resources

Type

object

Required

No

Properties

CPU Resources

CPU resources (requests and limits will be considered equal).

Key

resources.cpu

Type

string

Required

No

Default

1

Memory Resources

Memory resources (requests and limits will be considered equal).

Key

resources.memory

Type

string

Required

No

Default

2Gi

Network service configuration

Configuration for the RabbitMQ network service.

Key

service

Type

object

Required

No

Properties

Service Ports

Per-port configuration for the RabbitMQ Kubernetes Service. Used to pin NodePort numbers for the AMQP and AMQPS listeners.

Key

service.ports

Type

object

Required

No

Properties

AMQP NodePort

NodePort number to expose the plaintext AMQP listener. Applicable when service is of type NodePort. Set to 0 to let Kubernetes pick a free port. Ignored when service type is not NodePort.

Key

service.ports.amqpNodePort

Type

integer

Required

No

Default

30672

AMQPS NodePort

NodePort number to expose the AMQPS listener. Applicable when service is of type NodePort. Set to 0 to let Kubernetes pick a free port. Ignored when service type is not NodePort.

Key

service.ports.amqpsNodePort

Type

integer

Required

No

Default

30671

Kubernetes service type

RabbitMQ kubernetes service type.

Key

service.type

Type

string

Required

No

Default

ClusterIP

Enum

  • ClusterIP

  • NodePort

  • LoadBalancer