rabbitmq-cluster-operator

by alekc

Helm chartv2.9.0App 2.19.2MPL-2.0Verified publisher

Kubernetes operator that manages RabbitMQ clusters as a typed CRD, covering provisioning, scaling, and configuration

About this chart

rabbitmq-cluster-operator

Kubernetes operator that manages RabbitMQ clusters as a typed CRD, covering provisioning, scaling, and configuration

The RabbitMQ Cluster Operator manages RabbitmqCluster custom resources: create one, and the operator provisions, scales, and reconfigures the underlying StatefulSet, Services, and Secrets for you.

Quick start

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install rabbitmq-cluster-operator alekc/rabbitmq-cluster-operator

Or directly from the OCI registry, no helm repo add needed:

helm install rabbitmq-cluster-operator oci://charts.alekc.dev/rabbitmq-cluster-operator --version 2.9.0

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/rabbitmq-cluster-operator --version 2.9.0 --verify --keyring pubring.gpg

Installing the operator alone does nothing until a RabbitmqCluster exists. Create one at install time with cluster.create:

cluster:
  create: true
  name: "default"
  spec:
    replicas: 3
  ingress:
    enabled: true
    hosts:
      - host: rabbitmq.example.com
        paths:
          - path: /
            pathType: ImplementationSpecific

cluster.spec is rendered as-is under the RabbitmqCluster's own spec:, see the CRD reference for every field it accepts.

Maintainers

NameEmailUrl
alekc[email protected]

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
annotations.deploymentobject{}Deployment's annotations
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
cluster.createboolfalsecreate a new rabbitmq cluster
cluster.ingress.annotationsobject{}ingress annotations
cluster.ingress.classNamestring""
cluster.ingress.enabledboolfalseCreate an ingress for created cluster
cluster.ingress.hosts[0].hoststring"chart-example.local"
cluster.ingress.hosts[0].paths[0].pathstring"/"
cluster.ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
cluster.ingress.tlslist[]
cluster.namestring"default"cluster name
cluster.specobject{}cluster spec
commonAnnotationsobject{}Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field.
commonLabelsobject{}Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate.
crds.annotationsobject{}Annotations to be added to all CRDs
crds.installbooltrueInstall and upgrade CRDs
crds.keepbooltrueKeep CRDs on chart uninstall
deployment.strategyobject{"type":"RollingUpdate"}Deployment strategy
envobject{"full":[],"simple":{}}environment values
env.fulllist[]full envs, they will be rendered as written here. Useful if you need to use secrets/cm
env.simpleobject{}simple key: val based env vars
extraContainerslist[]Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends.
extraResourceslist[]
fullnameOverridestring"rabbitmq-cluster-operator"
image.pullPolicystring"IfNotPresent"
image.repositorystring"rabbitmqoperator/cluster-operator"
image.tagstring""
imagePullSecretslist[]
initContainerslist[]Extra init containers appended to the pod spec, templated with tpl.
kubernetesClusterDomainstring"cluster.local"
nameOverridestring""
networkPolicy.annotationsobject{}Annotations to add to the NetworkPolicy
networkPolicy.enabledboolfalseRender a NetworkPolicy restricting ingress to the operator's own metrics port. Egress stays broad by default (DNS plus 0.0.0.0/0): the operator needs to reach the Kubernetes API server, whose ClusterIP falls inside the cluster's service CIDR, which varies per cluster and isn't something this chart can pin narrowly on its own.
networkPolicy.extraEgresslist[]Additional raw egress rules, appended as-is under spec.egress.
networkPolicy.extraIngresslist[]Additional raw ingress rules, appended as-is under spec.ingress.
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Pod-level securityContext. Matches upstream's own reference manifest for this exact appVersion (config/manager/manager.yaml), not invented here.
replicaCountint1
resourcesobject{}
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Container-level securityContext. Same upstream reference as podSecurityContext above.
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
serviceMonitor.annotationsobject{}Annotations to add to the ServiceMonitor
serviceMonitor.createboolfalseCreate a ServiceMonitor scraping any RabbitmqCluster's broker pods cluster-wide (selects app.kubernetes.io/component: rabbitmq across all namespaces). This is NOT the operator's own /metrics endpoint, which this chart doesn't expose a Service/ServiceMonitor for at all, see Gotchas.
tolerationslist[]

Gotchas

  • serviceMonitor.create monitors RabbitMQ clusters, not the operator itself. It renders a ServiceMonitor selecting app.kubernetes.io/component: rabbitmq across every namespace (any RabbitmqCluster's broker pods, wherever they run), scraping RabbitMQ's own prometheus/prometheus-tls metrics ports. The operator's own /metrics on :9782 has no Service or ServiceMonitor in this chart at all.
  • This appVersion predates the operator's own health probes. Upstream added --health-probe-bind-address//healthz//readyz support in a later release than 2.19.2; adding liveness/readiness probes now would point at an endpoint the running binary doesn't implement. Revisit once appVersion moves past the release that adds it.
  • crds.keep: true by default. The CRD carries helm.sh/resource-policy: keep, so helm uninstall leaves rabbitmqclusters.rabbitmq.com (and any RabbitmqCluster instances) in place. Deleting the CRD while instances exist cascades to deleting every RabbitMQ cluster it manages, set crds.keep: false only if that's genuinely intended.
  • networkPolicy.enabled allows broad egress to 0.0.0.0/0 by default. The operator needs to reach the Kubernetes API server, whose ClusterIP falls inside the cluster's service CIDR, which varies per cluster and isn't something this chart can pin narrowly on its own.

Upgrade notes

No breaking changes yet. This section will list migration steps for any future release with a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.

Deploy rabbitmq-cluster-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rabbitmq-cluster-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrabbitmq-cluster-operator is pinned at v2.9.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply