Skip to main content

helm deploy rabbitmq

helm deploy rabbitmq

1. Add rabbitmq warehouse and download the package

    helm repo add bitnami https://charts.bitnami.com/bitnami
helm pull bitnami/rabbitmq --version 10.1.4
tar -zxvf rabbitmq-10.1.4.tgz
mv values.yaml values.yaml.back
grep -v "#" values.yaml.back > values.yaml

2. Helm deployment service and default rabbitmq/values.yaml modification
can modify the specified version of rabbitmq

    image:
registry: docker.io
repository: bitnami/rabbitmq
tag: 3.10.5-debian-10-r0


If you do not mount the persistent disk, you can modify persistence to false.

    persistence:
enabled: false
storageClass: ""
selector: {}
accessModes:
- ReadWriteOnce
existingClaim: ""
mountPath: /bitnami/rabbitmq/mnesia
subPath: ""
size: 8Gi
annotations: {}


If you want to expose the port, you can modify the service configuration type: NodePort, and you can specify the exposed port yourself.

    service:
type: NodePort

portEnabled: true
distPortEnabled: true
managerPortEnabled: true
epmdPortEnabled: true
ports:
amqp: 5672
amqpTls: 5671
dist: 25672
manager: 15672
metrics: 9419
epmd: 4369
portNames:
amqp: "amqp"
amqpTls: "amqp-ssl"
dist: "dist"
manager: "http-stats"
metrics: "metrics"
epmd: "epmd"

nodePorts:
amqp: "31672"
amqpTls: "31671"
dist: "31673"
manager: "31674"
epmd: "31419"
metrics: "31369"



![helm deploy rabbitmq](6b44e99974d17195ee2722671aabdc1f.png)

Deployment service

    helm install my-rabbitmq rabbitmq -n default

3.helm persistent designated server and persistent mount deployment

pvccreation

    tee ci/default/rabbitmq-data-local-path-values.yaml <<EOF

nameOverride: rabbitmq-data-local-path

size: 1Gi
storageClassName: local-path


EOF

    helm upgrade rabbitmq-data-local-path ./pvc/ -f ./pvc/ci/ci-values.yaml -f ./pvc/ci/default/rabbitmq-data-local-path-values.yaml -i -n default
kubectl label node gem-yxyw-t-c02 rabbitmq.default=true

    tee ci/ci-values.yaml <<EOF
image:
registry: docker.io
repository: bitnami/rabbitmq
tag: 3.9
debug: false
pullPolicy: IfNotPresent
pullSecrets: []

affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: rabbitmq.default
operator: In
values:
- "true"
persistence:
enabled: true
existingClaim: rabbitmq-data-local-path

service:
enabled: true
type: NodePort
EOF


![helm deploy rabbitmq](6b44e99974d17195ee2722671aabdc1f.png)

Start service

    helm upgrade rabbitmq ./rabbitmq/ -f ./rabbitmq/values.yaml -f ./rabbitmq/ci/ci-values.yaml -i -n default

Create rabbitmq user
helm deploy rabbitmq
helm deploy rabbitmq
helm deploy rabbitmq
and set login access permissions
helm deploy rabbitmq