OpenTenant / Marketplace / kfirfer / rabbitmq
About this chart
RabbitMQ
A Helm chart for a RabbitMQ HA-cluster on Kubernetes
Changelog
see RELEASENOTES.md
⚠️ Please make sure all feature flags are enabled before upgrading to RabbitMQ 3.12.x TL;DR
helm repo add groundhog2k https://groundhog2k.github.io/helm-charts/
helm install my-release groundhog2k/rabbitmq
Introduction
This chart uses the original RabbitMQ image from Docker Hub to deploy a stateful RabbitMQ cluster in Kubernetes.
It fully supports deployment of the multi-architecture docker image.
Prerequisites
Kubernetes 1.12+
Helm 3.x
PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
helm install my-release groundhog2k/rabbitmq
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm uninstall my-release
Common parameters Key Type Default Description
fullnameOverride string ""Fully override the deployment name
nameOverride string ""Partially override the deployment name
Deployment parameters Key Type Default Description
image.pullPolicy string "IfNotPresent"Image pull policy
image.registry string "docker.io"Image registry
image.repository string "rabbitmq"Image name
image.tag string ""Image tag
initImage.pullPolicy string "IfNotPresent"Init image pull policy
initImage.registry string "docker.io"Image registry
initImage.repository string "busybox"Init image name
initImage.tag string "latest"Init image tag
imagePullSecrets list []Image pull secrets
extraInitContainers list []Extra init containers
extaContainers list []Extra containers for usage as sidecars
startupProbe object see values.yamlStartup probe configuration
livenessProbe object see values.yamlLiveness probe configuration
readinessProbe object see values.yamlReadiness probe configuration
customStartupProbe object {}Custom startup probe (overwrites default startup probe configuration)
customLivenessProbe object {}Custom liveness probe (overwrites default liveness probe configuration)
customReadinessProbe object {}Custom readiness probe (overwrites default readiness probe configuration)
initResources object {}Resource limits and requests for the default init container
resources object {}Resource limits and requests
nodeSelector object {}Deployment node selector
podAnnotations object {}Additional pod annotations
podSecurityContext object see values.yamlPod security context
securityContext object see values.yamlContainer security context
env list []Additional container environmment variables
args list []Additional container command arguments
terminationGracePeriodSeconds int 60Container termination grace period in seconds
rbac.create bool trueEnable creation of RBAC
serviceAccount.annotations object {}Additional service account annotations
serviceAccount.create bool trueEnable service account creation
serviceAccount.name string ""Optional name of the service account
affinity object {}Affinity for pod assignment
tolerations list []Tolerations for pod assignment
podManagementPolicy string "OrderedReady"Pod management policy
updateStrategyType string "RollingUpdate"Pod update strategy
replicaCount int 1Number of replicas
revisionHistoryLimit int nilMaximum number of revisions maintained in revision history
podDisruptionBudget object {}Pod disruption budget
podDisruptionBudget.minAvailable int nilMinimum number of pods that must be available after eviction
podDisruptionBudget.maxUnavailable int nilMaximum number of pods that can be unavailable after eviction
Service parameters Key Type Default Description
service.type string "ClusterIP"Service type
service.clusterIP string nilThe cluster ip address (only relevant for type LoadBalancer or NodePort)
service.loadBalancerIP string nilThe load balancer ip address (only relevant for type LoadBalancer)
service.amqp.port int 5672AMQP service port
service.amqp.nodePort int nilService node port (only relevant for type LoadBalancer or NodePort)
service.amqps.port int 5671Secure AMQP service port
service.amqps.nodePort int nilService node port (only relevant for type LoadBalancer or NodePort)
service.mgmt.port int 15672Management UI service port
service.mgmt.nodePort int nilService node port (only relevant for type LoadBalancer or NodePort)
service.prometheus.port int 15692Prometheus service port
service.prometheus.nodePort int nilService node port (only relevant for type LoadBalancer or NodePort)
service.annotations object {}Additional service annotations
Extra services parameters
Section to define custom services
Key Type Default Description
extraServices[].name string nilUnique name of the input service
extraServices[].type string nilService type (ClusterIP / NodePort / LoadBalancer)
extraServices[].protocol string nilProtocol type (TCP / UDP)
extraServices[].containerPort int nilContainer port
extraServices[].port int nilService port
extraServices[].nodePort int nilThe node port (only relevant for type LoadBalancer or NodePort)
extraServices[].clusterIP string nilThe cluster ip address (only relevant for type LoadBalancer or NodePort)
extraServices[].loadBalancerIP string nilThe load balancer ip address (only relevant for type LoadBalancer)
extraServices[].annotations object {}Additional service annotations
Service monitor parameters Key Type Default Description
serviceMonitor.enabled bool falseEnable service monitor
serviceMonitor.additionalLabels object {}Additional labels for the service monitor object
serviceMonitor.annotations object {}Annotations for the service monitor object
serviceMonitor.interval Duration nilScrape interval for prometheus
serviceMonitor.scrapeTimeout Duration nilScrape timeout value
serviceMonitor.extraEndpointParameters object nilExtra parameters rendered to the service monitor endpoint
serviceMonitor.extraParameters object nilExtra parameters rendered to the service monitor object
Storage parameters Key Type Default Description
storage.accessModes[0] string "ReadWriteOnce"Storage access mode
storage.persistentVolumeClaimName string nilPVC name when existing storage volume should be used
storage.requestedSize string nilSize for new PVC, when no existing PVC is used
storage.className string nilStorage class name
Ingress parameters Key Type Default Description
ingress.enabled bool falseEnable ingress for the Management UI service
ingress.annotations string nilAdditional annotations for ingress
ingress.hosts[0].host: string ""Hostname for the ingress endpoint
ingress.hosts[0].host.paths[0] string "/"Path for the RabbitMQ Management UI
ingress.tls list []Ingress TLS parameters
Network policies
Allows to define optional network policies for ingress and egress
The policyTypes will be automatically set
Key Type Default Description
networkPolicy.ingress object {}Ingress network policies
networkPolicy.egress object {}Egress network policies
RabbitMQ base parameters Key Type Default Description
clusterDomain string "cluster.local"Kubernetes cluster domain (DNS) suffix
plugins list []List of additional RabbitMQ plugins that should be activated (see: RabbitMQ plugins )
authentication.user string nilInitial user name (guest) (Alternative: Set environment variable RABBITMQ_DEFAULT_USER)
authentication.password string nilInitial password (guest) (Alternative: set environment variable RABBITMQ_DEFAULT_PASS)
authentication.erlangCookie string nilErlang cookie (MANDATORY) (Alternative: Set the environment variable ERLANG_COOKIE)
clustering.rebalance bool falseEnable rebalance queues with master when new replica is created
clustering.forceBoot bool falseForce boot in case cluster peers are not available
clustering.useLongName bool trueUse FQDN for RabbitMQ node names
RabbitMQ memory parameters Key Type Default Description
options.memoryHighWatermark.enabled bool falseEnables high memory watermark configuration
options.memoryHighWatermark.type string "relative"Type of watermark value (relative or absolute)
options.memoryHighWatermark.value float 0.4Watermark value (default: 40%)
options.memoryHighWatermark.pagingRatio float nilPaging threshold when RabbitMQ starts paging queue content before high memory watermark is reached
options.memory.totalAvailableOverrideValue int nilOverwrites the value that is automatically calculated from resource.limits.memory
options.memory.calculationStrategy string nilStrategy for memory usage report (rss or allocated)
RabbitMQ communication and SSL parameters Key Type Default Description
options.tcp.port int 5672AMQP tcp port
options.ssl.enabled bool falseEnable secure AMQP (amqps) (see values.yaml for more details)
options.ssl.port int 5671AMQPS tcp port
options.ssl.verify bool falseEnables or disables peer verification
options.ssl.failIfNoPeerCert bool falseReject TLS connection when client fails to provide a certificate
options.ssl.depth int nilClient certificate verification depth
options.ssl.certPaths object {}Pathes of the certificate files
options.ssl.certPaths.cacert string nilPath to the CA certificate(s) file
options.ssl.certPaths.cert string nilPath to the server certificate file
options.ssl.certPaths.key string nilPath to the private key file (Hint: ssl_options.password configuration needs to be provided as extraSecretConfig:)
RabbitMQ plugin base parameters Key Type Default Description
managementPlugin.enabled bool trueEnable management UI plugin with default configuration
managementPlugin.tcp.port int 15672Management UI port
prometheusPlugin.enabled bool trueEnable prometheus monitoring plugin with default configuration
prometheusPlugin.tcp.port int 15692Prometheus plugin TCP port
k8sPeerDiscoveryPlugin.enabled bool trueEnable K8s peer discovery plugin for a RabbitMQ HA-cluster with default configuration
k8sPeerDiscoveryPlugin.addressType string "hostname"K8s peer discovery plugin address type (hostname or ip)
RabbitMQ custom configuration parameters Key Type Default Description
customConfig string nilCustom inline configuration entries for rabbitmq.conf (see RabbitMQ config )
extraSecretConfigs string nilAn existing secret with files that will be added to the rabbitmq.conf
customAdvancedConfig string nilCustom inline advanced configuration entries for advanced.config (see RabbitMQ advanced config )
extraSecretAdvancedConfigs string nilAn existing secret with files that will be added to the advanced.conf
extraEnvSecrets list []A list of existing secrets that will be mounted into the container as environment variables
extraSecrets list []A list of additional existing secrets that will be mounted into the container
extraSecrets[].name string nilName of the existing Kubernetes secret
extraSecrets[].mountPath string nilMount path where the secret should be mounted into the container (f.e. /mysecretfolder)
Details
Repository kfirfer Chart version v0.7.21 App version 3.12.10 Updated Dec 10, 2023 Artifact Hub View listing
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.
Pick a server Connect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.Place the chart rabbitmq is pinned at v0.7.21 in opentenant.yaml. Drag more apps from the marketplace onto a rack.Apply Save 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 Copy