tree: dd375cf12fc58f95fa6378187ea8038d5397ad39 [path history] [tgz]
  1. charts/
  2. crds/
  3. templates/
  4. .helmignore
  5. Chart.lock
  6. Chart.yaml
  7. README.md
  8. requirements.lock
  9. values.yaml
charts/rabbitmq-cluster-operator/README.md

Bitnami package for RabbitMQ Cluster Operator

The RabbitMQ Cluster Kubernetes Operator automates provisioning, management, and operations of RabbitMQ clusters running on Kubernetes.

Overview of RabbitMQ Cluster Operator

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

helm install my-release oci://registry-1.docker.io/bitnamicharts/rabbitmq-cluster-operator

Looking to use RabbitMQ Cluster Operator in production? Try VMware Tanzu Application Catalog, the enterprise edition of Bitnami Application Catalog.

Introduction

Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.

This chart bootstraps a RabbitMQ Cluster Operator Deployment in a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.23+
  • Helm 3.8.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/rabbitmq-cluster-operator

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use REGISTRY_NAME=registry-1.docker.io and REPOSITORY_NAME=bitnamicharts.

The command deploy the RabbitMQ Cluster Kubernetes Operator on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Differences between the Bitnami RabbitMQ chart and the Bitnami RabbitMQ Operator chart

In the Bitnami catalog we offer both the bitnami/rabbitmq and bitnami/rabbitmq-operator charts. Each solution covers different needs and use cases.

The bitnami/rabbitmq chart deploys a single RabbitMQ installation using a Kubernetes StatefulSet object (together with Services, PVCs, ConfigMaps, etc.). The figure below shows the deployed objects in the cluster after executing helm install:

                    +--------------+             +-----+
                    |              |             |     |
 Service            |   RabbitMQ   +<------------+ PVC |
<-------------------+              |             |     |
                    |  StatefulSet |             +-----+
                    |              |
                    +-----------+--+
                                ^                +------------+
                                |                |            |
                                +----------------+ Configmaps |
                                                 | Secrets    |
                                                 +------------+

Its lifecycle is managed using Helm and, at the RabbitMQ container level, the following operations are automated: persistence management, configuration based on environment variables and plugin initialization. The StatefulSet do not require any ServiceAccounts with special RBAC privileges so this solution would fit better in more restricted Kubernetes installations.

The bitnami/rabbitmq-operator chart deploys a RabbitMQ Operator installation using a Kubernetes Deployment. The figure below shows the RabbitMQ operator deployment after executing helm install:

+--------------------+
|                    |      +---------------+
|  RabbitMQ Operator |      |               |
|                    |      |     RBAC      |
|     Deployment     |      | Privileges    |
+-------+------------+      +-------+-------+
        ^                           |
        |   +-----------------+     |
        +---+ Service Account +<----+
            +-----------------+

The operator will extend the Kubernetes API with the following object: RabbitmqCluster. From that moment, the user will be able to deploy objects of these kinds and the previously deployed Operator will take care of deploying all the required StatefulSets, ConfigMaps and Services for running a RabbitMQ instance. Its lifecycle is managed using kubectl on the RabbitmqCluster objects. The following figure shows the deployed objects after deploying a RabbitmqCluster object using kubectl:

  +--------------------+
  |                    |      +---------------+
  |  RabbitMQ Operator |      |               |
  |                    |      |     RBAC      |
  |     Deployment     |      | Privileges    |
  +-------+------------+      +-------+-------+
  |     ^                           |
  |     |   +-----------------+     |
  |     +---+ Service Account +<----+
  |         +-----------------+
  |
  |
  |
  |
  |    -------------------------------------------------------------------------
  |    |                                                                       |
  |    |                        +--------------+             +-----+           |
  |    |                        |              |             |     |           |
  |--->|     Service            |   RabbitMQ   +<------------+ PVC |           |
       |    <-------------------+              |             |     |           |
       |                        |  StatefulSet |             +-----+           |
       |                        |              |                               |
       |                        +-----------+--+                               |
       |                                    ^                +------------+    |
       |                                    |                |            |    |
       |                                    +----------------+ Configmaps |    |
       |                                                     | Secrets    |    |
       |                                                     +------------+    |
       |                                                                       |
       |                                                                       |
       -------------------------------------------------------------------------

This solution allows to easily deploy multiple RabbitMQ instances compared to the bitnami/rabbitmq chart. As the operator automatically deploys RabbitMQ installations, the RabbitMQ Operator pods will require a ServiceAccount with privileges to create and destroy multiple Kubernetes objects. This may be problematic for Kubernetes clusters with strict role-based access policies.

Configuration and installation details

Resource requests and limits

Bitnami charts allow setting resource requests and limits for all containers inside the chart deployment. These are inside the resources value (check parameter table). Setting requests is essential for production workloads and these should be adapted to your specific use case.

To make this process easier, the chart contains the resourcesPreset values, which automatically sets the resources section according to different presets. Check these presets in the bitnami/common chart. However, in production workloads using resourcePreset is discouraged as it may not fully adapt to your specific needs. Find more information on container resource management in the official Kubernetes documentation.

Rolling VS Immutable tags

It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.

Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.

Additional environment variables

In case you want to add extra environment variables (useful for advanced operations like custom init scripts), you can use the extraEnvVars property.

rabbitmq-cluster-operator:
  extraEnvVars:
    - name: LOG_LEVEL
      value: error

Alternatively, you can use a ConfigMap or a Secret with the environment variables. To do so, use the extraEnvVarsCM or the extraEnvVarsSecret values.

Sidecars

If additional containers are needed in the same pod as rabbitmq-cluster-operator (such as additional metrics or logging exporters), they can be defined using the sidecars parameter.

sidecars:
- name: your-image-name
  image: your-image
  imagePullPolicy: Always
  ports:
  - name: portname
    containerPort: 1234

If these sidecars export extra ports, extra port definitions can be added using the service.extraPorts parameter (where available), as shown in the example below:

service:
  extraPorts:
  - name: extraPort
    port: 11311
    targetPort: 11311

NOTE: This Helm chart already includes sidecar containers for the Prometheus exporters (where applicable). These can be activated by adding the --enable-metrics=true parameter at deployment time. The sidecars parameter should therefore only be used for any extra sidecar containers.

If additional init containers are needed in the same pod, they can be defined using the initContainers parameter. Here is an example:

initContainers:
  - name: your-image-name
    image: your-image
    imagePullPolicy: Always
    ports:
      - name: portname
        containerPort: 1234

Learn more about sidecar containers and init containers.

Pod affinity

This chart allows you to set your custom affinity using the affinity parameter. Find more information about Pod affinity in the kubernetes documentation.

As an alternative, use one of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the bitnami/common chart. To do so, set the podAffinityPreset, podAntiAffinityPreset, or nodeAffinityPreset parameters.

Deploying extra resources

There are cases where you may want to deploy extra objects, such your custom RabbitmqCluster objects. For covering this case, the chart allows adding the full specification of other objects using the extraDeploy parameter.

For instance, to deploy your custom RabbitmqCluster definition, you can install the RabbitMQ Cluster Operator using the values below:

extraDeploy:
  - apiVersion: rabbitmq.com/v1beta1
    kind: RabbitmqCluster
    metadata:
      name: rabbitmq-custom-configuration
    spec:
      replicas: 1
      rabbitmq:
        additionalConfig: |
          log.console.level = debug

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""
global.compatibility.openshift.adaptSecurityContextAdapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)auto

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled)false

RabbitMQ Cluster Operator Parameters

NameDescriptionValue
rabbitmqImage.registryRabbitMQ Image registryREGISTRY_NAME
rabbitmqImage.repositoryRabbitMQ Image repositoryREPOSITORY_NAME/rabbitmq
rabbitmqImage.digestRabbitMQ image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
rabbitmqImage.pullSecretsRabbitMQ Image pull secrets[]
credentialUpdaterImage.registryRabbitMQ Default User Credential Updater image registryREGISTRY_NAME
credentialUpdaterImage.repositoryRabbitMQ Default User Credential Updater image repositoryREPOSITORY_NAME/rmq-default-credential-updater
credentialUpdaterImage.digestRabbitMQ Default User Credential Updater image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
credentialUpdaterImage.pullSecretsRabbitMQ Default User Credential Updater image pull secrets[]
clusterOperator.image.registryRabbitMQ Cluster Operator image registryREGISTRY_NAME
clusterOperator.image.repositoryRabbitMQ Cluster Operator image repositoryREPOSITORY_NAME/rabbitmq-cluster-operator
clusterOperator.image.digestRabbitMQ Cluster Operator image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
clusterOperator.image.pullPolicyRabbitMQ Cluster Operator image pull policyIfNotPresent
clusterOperator.image.pullSecretsRabbitMQ Cluster Operator image pull secrets[]
clusterOperator.revisionHistoryLimitsets number of replicaset to keep in k8s10
clusterOperator.watchAllNamespacesWatch for resources in all namespacestrue
clusterOperator.watchNamespacesWatch for resources in the given namespaces (ignored if watchAllNamespaces=true)[]
clusterOperator.replicaCountNumber of RabbitMQ Cluster Operator replicas to deploy1
clusterOperator.schedulerNameAlternative scheduler""
clusterOperator.topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
clusterOperator.terminationGracePeriodSecondsIn seconds, time the given to the %%MAIN_CONTAINER_NAME%% pod needs to terminate gracefully""
clusterOperator.livenessProbe.enabledEnable livenessProbe on RabbitMQ Cluster Operator nodestrue
clusterOperator.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe5
clusterOperator.livenessProbe.periodSecondsPeriod seconds for livenessProbe30
clusterOperator.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
clusterOperator.livenessProbe.failureThresholdFailure threshold for livenessProbe5
clusterOperator.livenessProbe.successThresholdSuccess threshold for livenessProbe1
clusterOperator.readinessProbe.enabledEnable readinessProbe on RabbitMQ Cluster Operator nodestrue
clusterOperator.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
clusterOperator.readinessProbe.periodSecondsPeriod seconds for readinessProbe30
clusterOperator.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
clusterOperator.readinessProbe.failureThresholdFailure threshold for readinessProbe5
clusterOperator.readinessProbe.successThresholdSuccess threshold for readinessProbe1
clusterOperator.startupProbe.enabledEnable startupProbe on RabbitMQ Cluster Operator nodesfalse
clusterOperator.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe5
clusterOperator.startupProbe.periodSecondsPeriod seconds for startupProbe30
clusterOperator.startupProbe.timeoutSecondsTimeout seconds for startupProbe5
clusterOperator.startupProbe.failureThresholdFailure threshold for startupProbe5
clusterOperator.startupProbe.successThresholdSuccess threshold for startupProbe1
clusterOperator.customLivenessProbeCustom livenessProbe that overrides the default one{}
clusterOperator.customReadinessProbeCustom readinessProbe that overrides the default one{}
clusterOperator.customStartupProbeCustom startupProbe that overrides the default one{}
clusterOperator.resourcesPresetSet container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if clusterOperator.resources is set (clusterOperator.resources is recommended for production).nano
clusterOperator.resourcesSet container requests and limits for different resources like CPU or memory (essential for production workloads){}
clusterOperator.podSecurityContext.enabledEnabled RabbitMQ Cluster Operator pods' Security Contexttrue
clusterOperator.podSecurityContext.fsGroupChangePolicySet filesystem group change policyAlways
clusterOperator.podSecurityContext.sysctlsSet kernel settings using the sysctl interface[]
clusterOperator.podSecurityContext.supplementalGroupsSet filesystem extra groups[]
clusterOperator.podSecurityContext.fsGroupSet RabbitMQ Cluster Operator pod's Security Context fsGroup1001
clusterOperator.containerSecurityContext.enabledEnabled containers' Security Contexttrue
clusterOperator.containerSecurityContext.seLinuxOptionsSet SELinux options in containernil
clusterOperator.containerSecurityContext.runAsUserSet containers' Security Context runAsUser1001
clusterOperator.containerSecurityContext.runAsGroupSet containers' Security Context runAsGroup1001
clusterOperator.containerSecurityContext.runAsNonRootSet container's Security Context runAsNonRoottrue
clusterOperator.containerSecurityContext.privilegedSet container's Security Context privilegedfalse
clusterOperator.containerSecurityContext.readOnlyRootFilesystemSet container's Security Context readOnlyRootFilesystemtrue
clusterOperator.containerSecurityContext.allowPrivilegeEscalationSet container's Security Context allowPrivilegeEscalationfalse
clusterOperator.containerSecurityContext.capabilities.dropList of capabilities to be dropped["ALL"]
clusterOperator.containerSecurityContext.seccompProfile.typeSet container's Security Context seccomp profileRuntimeDefault
clusterOperator.commandOverride default container command (useful when using custom images)[]
clusterOperator.argsOverride default container args (useful when using custom images)[]
clusterOperator.automountServiceAccountTokenMount Service Account token in podtrue
clusterOperator.hostAliasesRabbitMQ Cluster Operator pods host aliases[]
clusterOperator.podLabelsExtra labels for RabbitMQ Cluster Operator pods{}
clusterOperator.podAnnotationsAnnotations for RabbitMQ Cluster Operator pods{}
clusterOperator.podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
clusterOperator.podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
clusterOperator.nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
clusterOperator.nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
clusterOperator.nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
clusterOperator.affinityAffinity for RabbitMQ Cluster Operator pods assignment{}
clusterOperator.nodeSelectorNode labels for RabbitMQ Cluster Operator pods assignment{}
clusterOperator.tolerationsTolerations for RabbitMQ Cluster Operator pods assignment[]
clusterOperator.updateStrategy.typeRabbitMQ Cluster Operator statefulset strategy typeRollingUpdate
clusterOperator.priorityClassNameRabbitMQ Cluster Operator pods' priorityClassName""
clusterOperator.lifecycleHooksfor the RabbitMQ Cluster Operator container(s) to automate configuration before or after startup{}
clusterOperator.containerPorts.metricsRabbitMQ Cluster Operator container port (used for metrics)9782
clusterOperator.extraEnvVarsArray with extra environment variables to add to RabbitMQ Cluster Operator nodes[]
clusterOperator.extraEnvVarsCMName of existing ConfigMap containing extra env vars for RabbitMQ Cluster Operator nodes""
clusterOperator.extraEnvVarsSecretName of existing Secret containing extra env vars for RabbitMQ Cluster Operator nodes""
clusterOperator.extraVolumesOptionally specify extra list of additional volumes for the RabbitMQ Cluster Operator pod(s)[]
clusterOperator.extraVolumeMountsOptionally specify extra list of additional volumeMounts for the RabbitMQ Cluster Operator container(s)[]
clusterOperator.sidecarsAdd additional sidecar containers to the RabbitMQ Cluster Operator pod(s)[]
clusterOperator.initContainersAdd additional init containers to the RabbitMQ Cluster Operator pod(s)[]
clusterOperator.networkPolicy.enabledSpecifies whether a NetworkPolicy should be createdtrue
clusterOperator.networkPolicy.kubeAPIServerPortsList of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)[]
clusterOperator.networkPolicy.allowExternalDon't require injector label for connectionstrue
clusterOperator.networkPolicy.allowExternalEgressAllow the pod to access any range of port and all destinations.true
clusterOperator.networkPolicy.extraIngressAdd extra ingress rules to the NetworkPolice[]
clusterOperator.networkPolicy.extraEgressAdd extra ingress rules to the NetworkPolicy[]
clusterOperator.networkPolicy.ingressNSMatchLabelsLabels to match to allow traffic from other namespaces{}
clusterOperator.networkPolicy.ingressNSPodMatchLabelsPod labels to match to allow traffic from other namespaces{}
clusterOperator.rbac.createSpecifies whether RBAC resources should be createdtrue
clusterOperator.rbac.clusterRole.customRulesDefine custom access rules for the ClusterRole[]
clusterOperator.rbac.clusterRole.extraRulesDefine extra access rules for the ClusterRole. This has no effect if customerRules is a non-empty array.[]
clusterOperator.serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
clusterOperator.serviceAccount.nameThe name of the ServiceAccount to use.""
clusterOperator.serviceAccount.annotationsAdd annotations{}
clusterOperator.serviceAccount.automountServiceAccountTokenAutomount API credentials for a service account.false

RabbitMQ Cluster Operator Metrics parameters

NameDescriptionValue
clusterOperator.metrics.service.enabledCreate a service for accessing the metrics endpointfalse
clusterOperator.metrics.service.typeRabbitMQ Cluster Operator metrics service typeClusterIP
clusterOperator.metrics.service.ports.httpRabbitMQ Cluster Operator metrics service HTTP port80
clusterOperator.metrics.service.nodePorts.httpNode port for HTTP""
clusterOperator.metrics.service.clusterIPRabbitMQ Cluster Operator metrics service Cluster IP""
clusterOperator.metrics.service.extraPortsExtra ports to expose (normally used with the sidecar value)[]
clusterOperator.metrics.service.loadBalancerIPRabbitMQ Cluster Operator metrics service Load Balancer IP""
clusterOperator.metrics.service.loadBalancerSourceRangesRabbitMQ Cluster Operator metrics service Load Balancer sources[]
clusterOperator.metrics.service.externalTrafficPolicyRabbitMQ Cluster Operator metrics service external traffic policyCluster
clusterOperator.metrics.service.annotationsAdditional custom annotations for RabbitMQ Cluster Operator metrics service{}
clusterOperator.metrics.service.sessionAffinitySession Affinity for Kubernetes service, can be "None" or "ClientIP"None
clusterOperator.metrics.service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
clusterOperator.metrics.serviceMonitor.enabledSpecify if a servicemonitor will be deployed for prometheus-operatorfalse
clusterOperator.metrics.serviceMonitor.namespaceNamespace which Prometheus is running in""
clusterOperator.metrics.serviceMonitor.jobLabelSpecify the jobLabel to use for the prometheus-operatorapp.kubernetes.io/name
clusterOperator.metrics.serviceMonitor.honorLabelsHonor metrics labelsfalse
clusterOperator.metrics.serviceMonitor.selectorPrometheus instance selector labels{}
clusterOperator.metrics.serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended""
clusterOperator.metrics.serviceMonitor.intervalScrape interval. If not set, the Prometheus default scrape interval is used""
clusterOperator.metrics.serviceMonitor.metricRelabelingsSpecify additional relabeling of metrics[]
clusterOperator.metrics.serviceMonitor.relabelingsSpecify general relabeling[]
clusterOperator.metrics.serviceMonitor.labelsExtra labels for the ServiceMonitor{}
clusterOperator.metrics.serviceMonitor.pathDefine the path used by ServiceMonitor to scrap metrics""
clusterOperator.metrics.serviceMonitor.paramsDefine the HTTP URL parameters used by ServiceMonitor{}
clusterOperator.metrics.podMonitor.enabledCreate PodMonitor Resource for scraping metrics using PrometheusOperatorfalse
clusterOperator.metrics.podMonitor.jobLabelSpecify the jobLabel to use for the prometheus-operatorapp.kubernetes.io/name
clusterOperator.metrics.podMonitor.namespaceNamespace which Prometheus is running in""
clusterOperator.metrics.podMonitor.honorLabelsHonor metrics labelsfalse
clusterOperator.metrics.podMonitor.selectorPrometheus instance selector labels{}
clusterOperator.metrics.podMonitor.intervalSpecify the interval at which metrics should be scraped30s
clusterOperator.metrics.podMonitor.scrapeTimeoutSpecify the timeout after which the scrape is ended30s
clusterOperator.metrics.podMonitor.additionalLabelsAdditional labels that can be used so PodMonitors will be discovered by Prometheus{}
clusterOperator.metrics.podMonitor.pathDefine HTTP path to scrape for metrics.""
clusterOperator.metrics.podMonitor.relabelingsSpecify general relabeling[]
clusterOperator.metrics.podMonitor.metricRelabelingsSpecify additional relabeling of metrics[]
clusterOperator.metrics.podMonitor.paramsDefine the HTTP URL parameters used by PodMonitor{}

RabbitMQ Messaging Topology Operator Parameters

NameDescriptionValue
msgTopologyOperator.enabledDeploy RabbitMQ Messaging Topology Operator as part of the installationtrue
msgTopologyOperator.image.registryRabbitMQ Messaging Topology Operator image registryREGISTRY_NAME
msgTopologyOperator.image.repositoryRabbitMQ Messaging Topology Operator image repositoryREPOSITORY_NAME/rmq-messaging-topology-operator
msgTopologyOperator.image.digestRabbitMQ Messaging Topology Operator image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
msgTopologyOperator.image.pullPolicyRabbitMQ Messaging Topology Operator image pull policyIfNotPresent
msgTopologyOperator.image.pullSecretsRabbitMQ Messaging Topology Operator image pull secrets[]
msgTopologyOperator.revisionHistoryLimitsets number of replicaset to keep in k8s10
msgTopologyOperator.watchAllNamespacesWatch for resources in all namespacestrue
msgTopologyOperator.watchNamespacesWatch for resources in the given namespaces ## @param clusterOperator.watchNamespaces [array] Watch for resources in the given namespaces (ignored if watchAllNamespaces=true)[]
msgTopologyOperator.replicaCountNumber of RabbitMQ Messaging Topology Operator replicas to deploy1
msgTopologyOperator.topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
msgTopologyOperator.schedulerNameAlternative scheduler""
msgTopologyOperator.terminationGracePeriodSecondsIn seconds, time the given to the %%MAIN_CONTAINER_NAME%% pod needs to terminate gracefully""
msgTopologyOperator.hostNetworkBooleanfalse
msgTopologyOperator.dnsPolicyAlternative DNS policyClusterFirst
msgTopologyOperator.livenessProbe.enabledEnable livenessProbe on RabbitMQ Messaging Topology Operator nodestrue
msgTopologyOperator.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe5
msgTopologyOperator.livenessProbe.periodSecondsPeriod seconds for livenessProbe30
msgTopologyOperator.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
msgTopologyOperator.livenessProbe.failureThresholdFailure threshold for livenessProbe5
msgTopologyOperator.livenessProbe.successThresholdSuccess threshold for livenessProbe1
msgTopologyOperator.readinessProbe.enabledEnable readinessProbe on RabbitMQ Messaging Topology Operator nodestrue
msgTopologyOperator.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
msgTopologyOperator.readinessProbe.periodSecondsPeriod seconds for readinessProbe30
msgTopologyOperator.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
msgTopologyOperator.readinessProbe.failureThresholdFailure threshold for readinessProbe5
msgTopologyOperator.readinessProbe.successThresholdSuccess threshold for readinessProbe1
msgTopologyOperator.startupProbe.enabledEnable startupProbe on RabbitMQ Messaging Topology Operator nodesfalse
msgTopologyOperator.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe5
msgTopologyOperator.startupProbe.periodSecondsPeriod seconds for startupProbe30
msgTopologyOperator.startupProbe.timeoutSecondsTimeout seconds for startupProbe5
msgTopologyOperator.startupProbe.failureThresholdFailure threshold for startupProbe5
msgTopologyOperator.startupProbe.successThresholdSuccess threshold for startupProbe1
msgTopologyOperator.customLivenessProbeCustom livenessProbe that overrides the default one{}
msgTopologyOperator.customReadinessProbeCustom readinessProbe that overrides the default one{}
msgTopologyOperator.customStartupProbeCustom startupProbe that overrides the default one{}
msgTopologyOperator.existingWebhookCertSecretname of a secret containing the certificates (use it to avoid certManager creating one)""
msgTopologyOperator.existingWebhookCertCABundlePEM-encoded CA Bundle of the existing secret provided in existingWebhookCertSecret (only if useCertManager=false)""
msgTopologyOperator.resourcesPresetSet container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if msgTopologyOperator.resources is set (msgTopologyOperator.resources is recommended for production).nano
msgTopologyOperator.resourcesSet container requests and limits for different resources like CPU or memory (essential for production workloads){}
msgTopologyOperator.podSecurityContext.enabledEnabled RabbitMQ Messaging Topology Operator pods' Security Contexttrue
msgTopologyOperator.podSecurityContext.fsGroupChangePolicySet filesystem group change policyAlways
msgTopologyOperator.podSecurityContext.sysctlsSet kernel settings using the sysctl interface[]
msgTopologyOperator.podSecurityContext.supplementalGroupsSet filesystem extra groups[]
msgTopologyOperator.podSecurityContext.fsGroupSet RabbitMQ Messaging Topology Operator pod's Security Context fsGroup1001
msgTopologyOperator.containerSecurityContext.enabledEnabled containers' Security Contexttrue
msgTopologyOperator.containerSecurityContext.seLinuxOptionsSet SELinux options in containernil
msgTopologyOperator.containerSecurityContext.runAsUserSet containers' Security Context runAsUser1001
msgTopologyOperator.containerSecurityContext.runAsGroupSet containers' Security Context runAsGroup1001
msgTopologyOperator.containerSecurityContext.runAsNonRootSet container's Security Context runAsNonRoottrue
msgTopologyOperator.containerSecurityContext.privilegedSet container's Security Context privilegedfalse
msgTopologyOperator.containerSecurityContext.readOnlyRootFilesystemSet container's Security Context readOnlyRootFilesystemtrue
msgTopologyOperator.containerSecurityContext.allowPrivilegeEscalationSet container's Security Context allowPrivilegeEscalationfalse
msgTopologyOperator.containerSecurityContext.capabilities.dropList of capabilities to be dropped["ALL"]
msgTopologyOperator.containerSecurityContext.seccompProfile.typeSet container's Security Context seccomp profileRuntimeDefault
msgTopologyOperator.fullnameOverrideString to fully override rmqco.msgTopologyOperator.fullname template""
msgTopologyOperator.commandOverride default container command (useful when using custom images)[]
msgTopologyOperator.argsOverride default container args (useful when using custom images)[]
msgTopologyOperator.automountServiceAccountTokenMount Service Account token in podtrue
msgTopologyOperator.hostAliasesRabbitMQ Messaging Topology Operator pods host aliases[]
msgTopologyOperator.podLabelsExtra labels for RabbitMQ Messaging Topology Operator pods{}
msgTopologyOperator.podAnnotationsAnnotations for RabbitMQ Messaging Topology Operator pods{}
msgTopologyOperator.podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
msgTopologyOperator.podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
msgTopologyOperator.nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
msgTopologyOperator.nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
msgTopologyOperator.nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
msgTopologyOperator.affinityAffinity for RabbitMQ Messaging Topology Operator pods assignment{}
msgTopologyOperator.nodeSelectorNode labels for RabbitMQ Messaging Topology Operator pods assignment{}
msgTopologyOperator.tolerationsTolerations for RabbitMQ Messaging Topology Operator pods assignment[]
msgTopologyOperator.updateStrategy.typeRabbitMQ Messaging Topology Operator statefulset strategy typeRollingUpdate
msgTopologyOperator.priorityClassNameRabbitMQ Messaging Topology Operator pods' priorityClassName""
msgTopologyOperator.lifecycleHooksfor the RabbitMQ Messaging Topology Operator container(s) to automate configuration before or after startup{}
msgTopologyOperator.containerPorts.metricsRabbitMQ Messaging Topology Operator container port (used for metrics)8080
msgTopologyOperator.extraEnvVarsArray with extra environment variables to add to RabbitMQ Messaging Topology Operator nodes[]
msgTopologyOperator.extraEnvVarsCMName of existing ConfigMap containing extra env vars for RabbitMQ Messaging Topology Operator nodes""
msgTopologyOperator.extraEnvVarsSecretName of existing Secret containing extra env vars for RabbitMQ Messaging Topology Operator nodes""
msgTopologyOperator.extraVolumesOptionally specify extra list of additional volumes for the RabbitMQ Messaging Topology Operator pod(s)[]
msgTopologyOperator.extraVolumeMountsOptionally specify extra list of additional volumeMounts for the RabbitMQ Messaging Topology Operator container(s)[]
msgTopologyOperator.sidecarsAdd additional sidecar containers to the RabbitMQ Messaging Topology Operator pod(s)[]
msgTopologyOperator.initContainersAdd additional init containers to the RabbitMQ Messaging Topology Operator pod(s)[]
msgTopologyOperator.service.typeRabbitMQ Messaging Topology Operator webhook service typeClusterIP
msgTopologyOperator.service.ports.webhookRabbitMQ Messaging Topology Operator webhook service HTTP port443
msgTopologyOperator.service.nodePorts.httpNode port for HTTP""
msgTopologyOperator.service.clusterIPRabbitMQ Messaging Topology Operator webhook service Cluster IP""
msgTopologyOperator.service.loadBalancerIPRabbitMQ Messaging Topology Operator webhook service Load Balancer IP""
msgTopologyOperator.service.extraPortsExtra ports to expose (normally used with the sidecar value)[]
msgTopologyOperator.service.loadBalancerSourceRangesRabbitMQ Messaging Topology Operator webhook service Load Balancer sources[]
msgTopologyOperator.service.externalTrafficPolicyRabbitMQ Messaging Topology Operator webhook service external traffic policyCluster
msgTopologyOperator.service.annotationsAdditional custom annotations for RabbitMQ Messaging Topology Operator webhook service{}
msgTopologyOperator.service.sessionAffinitySession Affinity for Kubernetes service, can be "None" or "ClientIP"None
msgTopologyOperator.service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
msgTopologyOperator.networkPolicy.enabledSpecifies whether a NetworkPolicy should be createdtrue
msgTopologyOperator.networkPolicy.kubeAPIServerPortsList of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)[]
msgTopologyOperator.networkPolicy.allowExternalDon't require injector label for connectionstrue
msgTopologyOperator.networkPolicy.allowExternalEgressAllow the pod to access any range of port and all destinations.true
msgTopologyOperator.networkPolicy.extraIngressAdd extra ingress rules to the NetworkPolice[]
msgTopologyOperator.networkPolicy.extraEgressAdd extra ingress rules to the NetworkPolicy[]
msgTopologyOperator.networkPolicy.ingressNSMatchLabelsLabels to match to allow traffic from other namespaces{}
msgTopologyOperator.networkPolicy.ingressNSPodMatchLabelsPod labels to match to allow traffic from other namespaces{}
msgTopologyOperator.rbac.createSpecifies whether RBAC resources should be createdtrue
msgTopologyOperator.rbac.clusterRole.customRulesDefine custom access rules for the ClusterRole[]
msgTopologyOperator.rbac.clusterRole.extraRulesDefine extra access rules for the ClusterRole. This has no effect if customerRules is a non-empty array.[]
msgTopologyOperator.serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
msgTopologyOperator.serviceAccount.nameThe name of the ServiceAccount to use.""
msgTopologyOperator.serviceAccount.annotationsAdd annotations{}
msgTopologyOperator.serviceAccount.automountServiceAccountTokenAutomount API credentials for a service account.false

RabbitMQ Messaging Topology Operator parameters

NameDescriptionValue
msgTopologyOperator.metrics.service.enabledCreate a service for accessing the metrics endpointfalse
msgTopologyOperator.metrics.service.typeRabbitMQ Cluster Operator metrics service typeClusterIP
msgTopologyOperator.metrics.service.ports.httpRabbitMQ Cluster Operator metrics service HTTP port80
msgTopologyOperator.metrics.service.nodePorts.httpNode port for HTTP""
msgTopologyOperator.metrics.service.clusterIPRabbitMQ Cluster Operator metrics service Cluster IP""
msgTopologyOperator.metrics.service.extraPortsExtra ports to expose (normally used with the sidecar value)[]
msgTopologyOperator.metrics.service.loadBalancerIPRabbitMQ Cluster Operator metrics service Load Balancer IP""
msgTopologyOperator.metrics.service.loadBalancerSourceRangesRabbitMQ Cluster Operator metrics service Load Balancer sources[]
msgTopologyOperator.metrics.service.externalTrafficPolicyRabbitMQ Cluster Operator metrics service external traffic policyCluster
msgTopologyOperator.metrics.service.annotationsAdditional custom annotations for RabbitMQ Cluster Operator metrics service{}
msgTopologyOperator.metrics.service.sessionAffinitySession Affinity for Kubernetes service, can be "None" or "ClientIP"None
msgTopologyOperator.metrics.service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
msgTopologyOperator.metrics.serviceMonitor.enabledSpecify if a servicemonitor will be deployed for prometheus-operatorfalse
msgTopologyOperator.metrics.serviceMonitor.namespaceNamespace which Prometheus is running in""
msgTopologyOperator.metrics.serviceMonitor.jobLabelSpecify the jobLabel to use for the prometheus-operatorapp.kubernetes.io/name
msgTopologyOperator.metrics.serviceMonitor.selectorPrometheus instance selector labels{}
msgTopologyOperator.metrics.serviceMonitor.honorLabelsHonor metrics labelsfalse
msgTopologyOperator.metrics.serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended""
msgTopologyOperator.metrics.serviceMonitor.intervalScrape interval. If not set, the Prometheus default scrape interval is used""
msgTopologyOperator.metrics.serviceMonitor.metricRelabelingsSpecify additional relabeling of metrics[]
msgTopologyOperator.metrics.serviceMonitor.relabelingsSpecify general relabeling[]
msgTopologyOperator.metrics.serviceMonitor.labelsExtra labels for the ServiceMonitor{}
msgTopologyOperator.metrics.podMonitor.enabledCreate PodMonitor Resource for scraping metrics using PrometheusOperatorfalse
msgTopologyOperator.metrics.podMonitor.jobLabelSpecify the jobLabel to use for the prometheus-operatorapp.kubernetes.io/name
msgTopologyOperator.metrics.podMonitor.namespaceNamespace which Prometheus is running in""
msgTopologyOperator.metrics.podMonitor.honorLabelsHonor metrics labelsfalse
msgTopologyOperator.metrics.podMonitor.selectorPrometheus instance selector labels{}
msgTopologyOperator.metrics.podMonitor.intervalSpecify the interval at which metrics should be scraped30s
msgTopologyOperator.metrics.podMonitor.scrapeTimeoutSpecify the timeout after which the scrape is ended30s
msgTopologyOperator.metrics.podMonitor.additionalLabelsAdditional labels that can be used so PodMonitors will be discovered by Prometheus{}
msgTopologyOperator.metrics.podMonitor.relabelingsSpecify general relabeling[]
msgTopologyOperator.metrics.podMonitor.metricRelabelingsSpecify additional relabeling of metrics[]

cert-manager parameters

NameDescriptionValue
useCertManagerDeploy cert-manager objects (Issuer and Certificate) for webhooksfalse

The above parameters map to the env variables defined in bitnami/rabbitmq-cluster-operator. For more information please refer to the bitnami/rabbitmq-cluster-operator image documentation.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install my-release \
  --set livenessProbe.enabled=false \
    oci://REGISTRY_NAME/REPOSITORY_NAME/rabbitmq-cluster-operator

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use REGISTRY_NAME=registry-1.docker.io and REPOSITORY_NAME=bitnamicharts.

The above command disables the Operator liveness probes.

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml oci://REGISTRY_NAME/REPOSITORY_NAME/rabbitmq-cluster-operator

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use REGISTRY_NAME=registry-1.docker.io and REPOSITORY_NAME=bitnamicharts. Tip: You can use the default values.yaml

Troubleshooting

Find more information about how to deal with common errors related to Bitnami's Helm charts in this troubleshooting guide.

Upgrading

Upgrading CRDs

By design, the helm upgrade command will not upgrade the CustomResourceDefinition objects, as stated in their official documentation. This is done to avoid the potential risks of upgrading CRD objects, such as data loss.

In order to upgrade the CRD objects, perform the following steps:

  • Perform a backup of your running RabbitMQ instances following the official documentation.

  • Execute the following commands (replace the VERSION placeholder):

helm fetch bitnami/rabbitmq-cluster-operator --version VERSION
tar xf rabbitmq-cluster-operator-VERSION.tar.gz
kubectl apply -f rabbitmq-cluster-operator/crds

To 4.0.0

This major bump changes the following security defaults:

  • resourcesPreset is changed from none to the minimum size working in our test suites (NOTE: resourcesPreset is not meant for production usage, but resources adapted to your use case).
  • global.compatibility.openshift.adaptSecurityContext is changed from disabled to auto.

This could potentially break any customization or init scripts used in your deployment. If this is the case, change the default values to the previous ones.

To 2.0.0

This new version adds the following components:

  • RabbitMQ Messaging Topology Operator: all the settings are inside the msgTopologyOperator section.
  • RabbitMQ Default User Credential Updater sidecar: this enables Hashicorp Vault integration for all RabbitMQCluster instances.
  • cert-manager subchart: this is necessary for the RabbitMQ Messaging Topology Webhooks to work.

As a breaking change, all rabbitmq-cluster-operator deployment values were moved to the clusterOperator section.

No issues are expected during upgrades.

To 1.0.0

The CRD was updated according to the latest changes in the upstream project. Thanks to the improvements in the latest changes, the CRD is not templated anymore and can be placed under the crds directory following Helm best practices for CRDS.

You need to manually delete the old CRD before upgrading the release.

kubectl delete crd rabbitmqclusters.rabbitmq.com
helm upgrade my-release oci://REGISTRY_NAME/REPOSITORY_NAME/rabbitmq-cluster-operator

Note: You need to substitute the placeholders REGISTRY_NAME and REPOSITORY_NAME with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use REGISTRY_NAME=registry-1.docker.io and REPOSITORY_NAME=bitnamicharts.

License

Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.