rabbitmq-cluster-operator
by alekc
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
| Name | Url | |
|---|---|---|
| alekc | [email protected] |
Source Code
- https://github.com/rabbitmq/cluster-operator
- https://gitlab.com/alexander-chernov/helm/rabbitmq-cluster-operator
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| annotations.deployment | object | {} | Deployment's annotations |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| cluster.create | bool | false | create a new rabbitmq cluster |
| cluster.ingress.annotations | object | {} | ingress annotations |
| cluster.ingress.className | string | "" | |
| cluster.ingress.enabled | bool | false | Create an ingress for created cluster |
| cluster.ingress.hosts[0].host | string | "chart-example.local" | |
| cluster.ingress.hosts[0].paths[0].path | string | "/" | |
| cluster.ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| cluster.ingress.tls | list | [] | |
| cluster.name | string | "default" | cluster name |
| cluster.spec | object | {} | cluster spec |
| commonAnnotations | object | {} | Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field. |
| commonLabels | object | {} | Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate. |
| crds.annotations | object | {} | Annotations to be added to all CRDs |
| crds.install | bool | true | Install and upgrade CRDs |
| crds.keep | bool | true | Keep CRDs on chart uninstall |
| deployment.strategy | object | {"type":"RollingUpdate"} | Deployment strategy |
| env | object | {"full":[],"simple":{}} | environment values |
| env.full | list | [] | full envs, they will be rendered as written here. Useful if you need to use secrets/cm |
| env.simple | object | {} | simple key: val based env vars |
| extraContainers | list | [] | Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends. |
| extraResources | list | [] | |
| fullnameOverride | string | "rabbitmq-cluster-operator" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "rabbitmqoperator/cluster-operator" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| initContainers | list | [] | Extra init containers appended to the pod spec, templated with tpl. |
| kubernetesClusterDomain | string | "cluster.local" | |
| nameOverride | string | "" | |
| networkPolicy.annotations | object | {} | Annotations to add to the NetworkPolicy |
| networkPolicy.enabled | bool | false | Render 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.extraEgress | list | [] | Additional raw egress rules, appended as-is under spec.egress. |
| networkPolicy.extraIngress | list | [] | Additional raw ingress rules, appended as-is under spec.ingress. |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {"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. |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Container-level securityContext. Same upstream reference as podSecurityContext above. |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| serviceMonitor.annotations | object | {} | Annotations to add to the ServiceMonitor |
| serviceMonitor.create | bool | false | Create 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. |
| tolerations | list | [] |
Gotchas
serviceMonitor.createmonitors RabbitMQ clusters, not the operator itself. It renders aServiceMonitorselectingapp.kubernetes.io/component: rabbitmqacross every namespace (anyRabbitmqCluster's broker pods, wherever they run), scraping RabbitMQ's ownprometheus/prometheus-tlsmetrics ports. The operator's own/metricson:9782has 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//readyzsupport in a later release than2.19.2; adding liveness/readiness probes now would point at an endpoint the running binary doesn't implement. Revisit onceappVersionmoves past the release that adds it. crds.keep: trueby default. The CRD carrieshelm.sh/resource-policy: keep, sohelm uninstallleavesrabbitmqclusters.rabbitmq.com(and anyRabbitmqClusterinstances) in place. Deleting the CRD while instances exist cascades to deleting every RabbitMQ cluster it manages, setcrds.keep: falseonly if that's genuinely intended.networkPolicy.enabledallows broad egress to0.0.0.0/0by 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartrabbitmq-cluster-operator is pinned at v2.9.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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