rabbitmq

by joaquinito2051

Helm chartv5.5.2App 3.7.15

Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)

About this chart

RabbitMQ

RabbitMQ is an open source message broker software that implements the Advanced Message Queuing Protocol (AMQP).

TL;DR;

$ helm install <helm-repo>/rabbitmq

$ helm install stable/rabbitmq

Introduction

This chart bootstraps a RabbitMQ deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.

Prerequisites

  • Kubernetes 1.8+
  • 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

$ helm install --name my-release stable/rabbitmq 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

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
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.registryRabbitmq Image registrydocker.io
image.repositoryRabbitmq Image namebitnami/rabbitmq
image.tagRabbitmq Image tag{VERSION}
image.pullPolicyImage pull policyAlways if imageTag is latest, else IfNotPresent
image.pullSecretsSpecify docker-registry secret names as an arraynil
image.debugSpecify if debug values should be setfalse
rbacEnabledSpecify if rbac is enabled in your clustertrue
podManagementPolicyPod management policyOrderedReady
rabbitmq.usernameRabbitMQ application usernameuser
rabbitmq.passwordRabbitMQ application passwordrandom 10 character long alphanumeric string
rabbitmq.existingPasswordSecretExisting secret with RabbitMQ credentialsnil
rabbitmq.erlangCookieErlang cookierandom 32 character long alphanumeric string
rabbitmq.existingErlangSecretExisting secret with RabbitMQ Erlang cookienil
rabbitmq.pluginsList of plugins to enablerabbitmq_management rabbitmq_peer_discovery_k8s
rabbitmq.extraPluginsExtra plugings to enablenil
rabbitmq.clustering.address_typeSwitch clustering modeip or hostname
rabbitmq.clustering.k8s_domainCustomize internal k8s cluster domaincluster.local
rabbitmq.logsValue for the RABBITMQ_LOGS environment variable-
rabbitmq.ulimitNofilesMax File Descriptor limit65536
rabbitmq.maxAvailableSchedulersRabbitMQ maximum available scheduler threads2
rabbitmq.onlineSchedulersRabbitMQ online scheduler threads1
rabbitmq.configurationRequired cluster configurationSee values.yaml
rabbitmq.extraConfigurationExtra configuration to add to rabbitmq.confSee values.yaml
service.typeKubernetes Service typeClusterIP
service.portAmqp port5672
service.distPortErlang distribution server port25672
service.nodePortNode port override, if serviceType NodePortrandom available between 30000-32767
service.managerPortRabbitMQ Manager port15672
persistence.enabledUse a PVC to persist datatrue
service.annotationsservice annotations as an array[]
persistence.storageClassStorage class of backing PVCnil (uses alpha storage class annotation)
persistence.existingClaimRabbitMQ data Persistent Volume existing claim name""
persistence.accessModeUse volume as ReadOnly or ReadWriteReadWriteOnce
persistence.sizeSize of data volume8Gi
persistence.pathMount path of the data volume/opt/bitnami/rabbitmq/var/lib/rabbitmq
securityContext.enabledEnable security contexttrue
securityContext.fsGroupGroup ID for the container1001
securityContext.runAsUserUser ID for the container1001
resourcesresource needs and limits to apply to the pod{}
priorityClassNamePod priority class name``
nodeSelectorNode labels for pod assignment{}
affinityAffinity settings for pod assignment{}
tolerationsToleration labels for pod assignment[]
updateStrategyStatefulset update strategy policyRollingUpdate
ingress.enabledEnable ingress resource for Management consolefalse
ingress.hostNameHostname to your RabbitMQ installationnil
ingress.pathPath within the url structure/
ingress.tlsenable ingress with tlsfalse
ingress.tlsSecrettls type secret to be usedmyTlsSecret
ingress.annotationsingress annotations as an array[]
livenessProbe.enabledwould you like a livenessProbed to be enabledtrue
livenessProbe.initialDelaySecondsnumber of seconds120
livenessProbe.timeoutSecondsnumber of seconds20
livenessProbe.periodSecondsnumber of seconds30
livenessProbe.failureThresholdnumber of failures6
livenessProbe.successThresholdnumber of successes1
readinessProbe.enabledwould you like a readinessProbe to be enabledtrue
readinessProbe.initialDelaySecondsnumber of seconds10
readinessProbe.timeoutSecondsnumber of seconds20
readinessProbe.periodSecondsnumber of seconds30
readinessProbe.failureThresholdnumber of failures3
readinessProbe.successThresholdnumber of successes1
metrics.enabledStart a side-car prometheus exporterfalse
metrics.image.registryExporter image registrydocker.io
metrics.image.repositoryExporter image namekbudde/rabbitmq-exporter
metrics.image.tagExporter image tagv0.29.0
metrics.image.pullPolicyExporter image pull policyIfNotPresent
metrics.envExporter configuration environment variables{}
metrics.resourcesExporter resource requests/limitnil
metrics.capabilitiesExporter: Comma-separated list of extended scraping capabilities supported by the target RabbitMQ serverbert,no_sort
podLabelsAdditional labels for the statefulset pod(s).{}
volumePermissions.enabledEnable init container that changes volume permissions in the data directory (for cases where the default k8s runAsUser and fsUser values do not work)false
volumePermissions.image.registryInit container volume-permissions image registrydocker.io
volumePermissions.image.repositoryInit container volume-permissions image namebitnami/minideb
volumePermissions.image.tagInit container volume-permissions image taglatest
volumePermissions.image.pullPolicyInit container volume-permissions image pull policy

Deploy rabbitmq with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rabbitmq 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 is pinned at v5.5.2 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