Thursday, October 1, 2020

Helm to Deploy RabbitMQ Cluster

Reference: https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq

$ helm install rabbitmq-fei-01  --namespace rabbitmq \

  --set auth.username=admin,auth.password=think4me,auth.erlangCookie=mysecretcookie,persistence.enabled=false \

    bitnami/rabbitmq



$ RABBITMQ_PASSWORD="$(kubectl get secret rabbitmq-fei-01-rabbitmq -o jsonpath='{.data.rabbitmq-$ password}' | base64 --decode)"

$ RABBITMQ_ERLANG_COOKIE="$(kubectl get secret rabbitmq-fei-01-rabbitmq -o jsonpath='{.data.rabbitmq-erlang-cookie}' | base64 --decode)"


$ helm upgrade rabbitmq-fei-01 bitnami/rabbitmq \

  --set replicaCount=4 \

  --set persistence.enabled=false \

  --set auth.password="$RABBITMQ_PASSWORD" \

  --set auth.erlangCookie="$RABBITMQ_ERLANG_COOKIE" \

  --debug


$ kubectl port-forward --namespace rabbitmq svc/rabbitmq-cluster 15672:15672

No comments:

Post a Comment