rabbitmq-operator
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
| Key | Type | Default | Description |
|---|---|---|---|
| replicaCount | int | 1 | Number of replicas (pods) to launch. |
| image.repository | string | "rabbitmqoperator/cluster-operator" | Name of the image repository to pull the container image from. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy for updating already existing images on a node. |
| image.tag | string | "" | Image tag override for the default value (chart appVersion). |
| imagePullSecrets | list | [] | Reference to one or more secrets to be used when pulling images (from private registries). |
| nameOverride | string | "" | A name in place of the chart name for app: labels. |
| fullnameOverride | string | "" | A name to substitute for the full names of resources. |
| serviceAccount.create | bool | true | Enable service account creation. |
| serviceAccount.annotations | object | {} | Annotations to be added to the service account. |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
| rbac.create | bool | true | Enable 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. |
| podAnnotations | object | {} | Annotations to be added to pods. |
| priorityClassName | string | "" | Specify a priority class name to set pod priority. |
| podSecurityContext | object | {} | Pod security context. See the API reference for details. |
| securityContext | object | {} | Container security context. See the API reference for details. |
| podMonitor.enabled | bool | false | Enable Prometheus PodMonitor to monitor the operator. |
| podMonitor.interval | string | "30s" | Interval at which metrics should be scraped. |
| resources | object | No requests or limits. | Container resource requests and limits. See the API reference for details. |
| nodeSelector | object | {} | Node selector configuration. |
| tolerations | list | [] | Tolerations for node taints. See the API reference for details. |
| affinity | object | {} | Affinity configuration. See the API reference for details. |
| rabbitmq.serviceMonitor.enabled | bool | false | Enable Prometheus ServiceMonitor to monitor RabbitMQ clusters created by the operator. |
| rabbitmq.serviceMonitor.interval | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartrabbitmq-operator is pinned at v0.0.3 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