rabbitmq-ha
Highly available RabbitMQ cluster, the open source message broker software that implements the Advanced Message Queuing Protocol (AMQP).
About this chart
RabbitMQ High Available
RabbitMQ is an open source message broker software that implements the Advanced Message Queuing Protocol (AMQP).
TL;DR;
$ helm install <helm-repo>/rabbitmq-ha
$ helm install stable/rabbitmq-ha
Introduction
This chart bootstraps a RabbitMQ deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.5+ with Beta APIs enabled
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release <helm-repo>/rabbitmq-ha
$ helm install --name my-release stable/rabbitmq-ha The command deploys RabbitMQ on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Upgrading the Chart
To upgrade the chart, you need to make sure that you are using the same value
of the rabbitmqErlangCookie amongst the releases. If you didn't define it at
the first place, you can upgrade using the following command:
$ export ERLANGCOOKIE=$(kubectl get secrets -n <NAMESPACE> <HELM_RELEASE_NAME>-rabbitmq-ha -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 --decode)
$ helm upgrade \
--set rabbitmqErlangCookie=$ERLANGCOOKIE \
<HELM_RELEASE_NAME> stable/rabbitmq-ha
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the RabbitMQ chart and their default values.
| Parameter | Description | Default |
|---|---|---|
existingConfigMap | Use an existing ConfigMap | false |
existingSecret | Use an existing secret for password, managementPassword & erlang cookie | "" |
extraPlugins | Additional plugins to add to the default configmap | rabbitmq_shovel, rabbitmq_shovel_management, rabbitmq_federation, rabbitmq_federation_management, |
extraConfig | Additional configuration to add to default configmap | {} |
advancedConfig | Additional configuration in classic config format | "" |
definitions.users | Additional users | "" |
definitions.vhosts | Additional vhosts | "" |
definitions.parameters | Additional parameters | "" |
definitions.permissions | Additional permissions | "" |
definitions.queues | Pre-created queues | "" |
definitions.exchanges | Pre-created exchanges | "" |
definitions.bindings | Pre-created bindings | "" |
definitions.policies | HA policies to add to definitions.json | "" |
definitionsSource | Use this key within an existing secret to reference the definitions specification | "definitions.json" |
image.pullPolicy | Image pull policy | Always if image tag is latest, else IfNotPresent |
image.repository | RabbitMQ container image repository | rabbitmq |
image.tag | RabbitMQ container image tag | 3.7.12-alpine |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
managementPassword | Management user password. | random 24 character long alphanumeric string |
managementUsername | Management user with minimal permissions used for health checks | management |
nodeSelector | Node labels for pod assignment | {} |
persistentVolume.accessMode | Persistent volume access modes | [ReadWriteOnce] |
persistentVolume.annotations | Persistent volume annotations | {} |
persistentVolume.enabled | If true, persistent volume claims are created | false |
persistentVolume.name | Persistent volume name | data |
persistentVolume.size | Persistent volume size | 8Gi |
persistentVolume.storageClass | Persistent volume storage class | - |
podAntiAffinity | Pod antiaffinity, hard or soft | hard |
podAntiAffinityTopologyKey | TopologyKey for antiaffinity, default is hostname | |
podDisruptionBudget | Pod Disruption Budget rules | {} |
podManagementPolicy | Whether the pods should be restarted in parallel or one at a time. Either OrderedReady or Parallel. | OrderedReady |
prometheus.exporter.enabled | Configures Prometheus Exporter to expose and scrape stats | false |
prometheus.exporter.env | Environment variables to set for Exporter container | {} |
prometheus.exporter.image.repository | Prometheus Exporter repository | kbudde/rabbitmq-exporter |
prometheus.exporter.image.tag | Image Tag | v0.29.0 |
prometheus.exporter.image.pullPolicy | Image Pull Policy | IfNotPresent |
prometheus.exporter.port | Port Prometheus scrapes for metrics | 9090 |
prometheus.exporter.capabilities | Comma-separated list of extended scraping capabilities supported by the target RabbitMQ server. Click here for details. | bert,no_sort |
prometheus.exporter.resources | Resource Limits for Prometheus Exporter | {} |
prometheus.operator.enabled | Are you using Prometheus Operator? Blog Post | true |
prometheus.operator.alerts.enabled | Create default Alerts for RabbitMQ | true |
prometheus.operator.alerts.selector | Selector to find ConfigMaps and create Prometheus Alerts | alert-rules |
prometheus.operator.alerts.labels | Labels to add to Alerts | {} |
prometheus.operator.serviceMonitor.interval | How often Prometheus Scrapes metrics |
Deploy rabbitmq-ha with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rabbitmq-ha 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-ha is pinned at v1.27.1 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