rabbitmq-ha

by joaquinito2051

Helm chartv1.27.1App 3.7.12

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.

ParameterDescriptionDefault
existingConfigMapUse an existing ConfigMapfalse
existingSecretUse an existing secret for password, managementPassword & erlang cookie""                              
extraPluginsAdditional plugins to add to the default configmaprabbitmq_shovel, rabbitmq_shovel_management, rabbitmq_federation, rabbitmq_federation_management,
extraConfigAdditional configuration to add to default configmap{}
advancedConfigAdditional configuration in classic config format""
definitions.usersAdditional users""
definitions.vhostsAdditional vhosts""
definitions.parametersAdditional parameters""
definitions.permissionsAdditional permissions""
definitions.queuesPre-created queues""
definitions.exchangesPre-created exchanges""
definitions.bindingsPre-created bindings""
definitions.policiesHA policies to add to definitions.json""
definitionsSourceUse this key within an existing secret to reference the definitions specification"definitions.json"
image.pullPolicyImage pull policyAlways if image tag is latest, else IfNotPresent
image.repositoryRabbitMQ container image repositoryrabbitmq
image.tagRabbitMQ container image tag3.7.12-alpine
image.pullSecretsSpecify docker-registry secret names as an array[]
managementPasswordManagement user password.random 24 character long alphanumeric string
managementUsernameManagement user with minimal permissions used for health checksmanagement
nodeSelectorNode labels for pod assignment{}
persistentVolume.accessModePersistent volume access modes[ReadWriteOnce]
persistentVolume.annotationsPersistent volume annotations{}
persistentVolume.enabledIf true, persistent volume claims are createdfalse
persistentVolume.namePersistent volume namedata
persistentVolume.sizePersistent volume size8Gi
persistentVolume.storageClassPersistent volume storage class-
podAntiAffinityPod antiaffinity, hard or softhard
podAntiAffinityTopologyKeyTopologyKey for antiaffinity, default is hostname
podDisruptionBudgetPod Disruption Budget rules{}
podManagementPolicyWhether the pods should be restarted in parallel or one at a time. Either OrderedReady or Parallel.OrderedReady
prometheus.exporter.enabledConfigures Prometheus Exporter to expose and scrape statsfalse
prometheus.exporter.envEnvironment variables to set for Exporter container{}
prometheus.exporter.image.repositoryPrometheus Exporter repositorykbudde/rabbitmq-exporter
prometheus.exporter.image.tagImage Tagv0.29.0
prometheus.exporter.image.pullPolicyImage Pull PolicyIfNotPresent
prometheus.exporter.portPort Prometheus scrapes for metrics9090
prometheus.exporter.capabilitiesComma-separated list of extended scraping capabilities supported by the target RabbitMQ server. Click here for details.bert,no_sort
prometheus.exporter.resourcesResource Limits for Prometheus Exporter{}
prometheus.operator.enabledAre you using Prometheus Operator? Blog Posttrue
prometheus.operator.alerts.enabledCreate default Alerts for RabbitMQtrue
prometheus.operator.alerts.selectorSelector to find ConfigMaps and create Prometheus Alertsalert-rules
prometheus.operator.alerts.labelsLabels to add to Alerts{}
prometheus.operator.serviceMonitor.intervalHow 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrabbitmq-ha is pinned at v1.27.1 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