Skip to Main Content

RabbitMQ Related Records

Deployment

# Deployed
kubectl create -f rabbitmq.yaml --namespace=kube-public
# View exposed port
kubectl get svc --namesspace=kube-public
# Enter:in browser http://10.0.33.203:31199/, access to deployed RabbitMQ. Enter user name and password on login page (first user/bitnami) and system will enter RabbitMQ home page.
  • helm3 installation
helm repo add stable https://charts.helm.sh/stable
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add ali https://apphub.aliyuncs.com/stable

# 安装
# 设置size为8G
helm install rabbitmq bitnami/rabbitmq --namespace middleware \
--set rabbitmq.username=admin,rabbitmq.password=admin,rabbitmq.persistence.storageClass=local-path,rabbitmq.persistence.size=8G

helm install rabbitmq bitnami/rabbitmq --namespace middleware \
--set auth.username=user,auth.password=admin,persistence.enabled=false

# 卸载
helm uninstall rabbitmq

# 更新
helm upgrade rabbitmq bitnami/rabbitmq --namespace middleware \
--set auth.username=user,auth.password=admin,persistence.enabled=false,auth.tls.enabled=false

kubtl apply -f "https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml"

# Installation using Helm chart
helm repo add bitnami https://charts.bitnami. om/bitnami
helm install my-release bitnami/rabbitmq-cluster-operator

# View
kubtl get all -n rabbitmq-system
kubectl get ustomresourcedefinitis. piextensions.k8s.io | grep rabbit

##### Example
kubectl apple-f https://raw.githubusercontent.com/rabbitmq/cluster-operator/main/docs/examples/hello-world/rabbitmq.yaml