rabbitmq-operator

by sagikazarmark

Helm chartv0.0.3App 1.8.3MITVerified publisher

Kubernetes operator to deploy and manage RabbitMQ clusters.

About this chart

rabbitmq-operator

Kubernetes operator to deploy and manage RabbitMQ clusters.

Homepage: https://www.rabbitmq.com/kubernetes/operator/operator-overview.html

TL;DR;

helm repo add skm https://charts.sagikazarmark.dev
helm install --generate-name --wait skm/rabbitmq-operator

Values

KeyTypeDefaultDescription
replicaCountint1Number of replicas (pods) to launch.
image.repositorystring"rabbitmqoperator/cluster-operator"Name of the image repository to pull the container image from.
image.pullPolicystring"IfNotPresent"Image pull policy for updating already existing images on a node.
image.tagstring""Image tag override for the default value (chart appVersion).
imagePullSecretslist[]Reference to one or more secrets to be used when pulling images (from private registries).
nameOverridestring""A name in place of the chart name for app: labels.
fullnameOverridestring""A name to substitute for the full names of resources.
serviceAccount.createbooltrueEnable service account creation.
serviceAccount.annotationsobject{}Annotations to be added to the service account.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
rbac.createbooltrueEnable the creation of RBAC resources. If disabled, the operator (ie. the person installing the chart) is responsible for creating the necessary resources based on the templates.
podAnnotationsobject{}Annotations to be added to pods.
priorityClassNamestring""Specify a priority class name to set pod priority.
podSecurityContextobject{}Pod security context. See the API reference for details.
securityContextobject{}Container security context. See the API reference for details.
podMonitor.enabledboolfalseEnable Prometheus PodMonitor to monitor the operator.
podMonitor.intervalstring"30s"Interval at which metrics should be scraped.
resourcesobjectNo requests or limits.Container resource requests and limits. See the API reference for details.
nodeSelectorobject{}Node selector configuration.
tolerationslist[]Tolerations for node taints. See the API reference for details.
affinityobject{}Affinity configuration. See the API reference for details.
rabbitmq.serviceMonitor.enabledboolfalseEnable Prometheus ServiceMonitor to monitor RabbitMQ clusters created by the operator.
rabbitmq.serviceMonitor.intervalstring"30s"Interval at which metrics should be scraped.

Development

Updating the operator

Always start by getting the latest manifest for the operator:

VERSION="1.7.0"

mkdir tmp

curl -L "https://github.com/rabbitmq/cluster-operator/releases/download/v${VERSION}/cluster-operator.yml" > tmp/cluster-operator.yaml

Download the k8split tool:

go get github.com/brendanjryan/k8split

Split up the resources:

k8split -o tmp tmp/cluster-operator.yaml

Update the templates based on the created resources.

Finally, clean up the resources:

rm -rf tmp

Attribution

This chart is created from the "remains" of the official chart removed in #296.

Deploy rabbitmq-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-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.

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