a simple Rabbitmq cluster based on Kubernetes
- build images
#cd images
#sh build-images.sh
- push images to habor
#docker tag epic-rabbitmq-server:3.6.10 10.254.9.21/library/epic-rabbitmq-server:3.6.10
#docker push 10.254.9.21/library/epic-rabbitmq-server:3.6.10
- create vip service
#kubectl create -f kubernetes/rabbitmq-cluster-vip.yaml
- start rabbitmq node 1
#kubectl create -f kubernetes/rabbitmq-cluster-node1.yaml
-
wait a few seconds, make sure
http://10.254.9.21:30130
can be accessed. -
start other nodes
#kubectl create -f kubernetes/rabbitmq-cluster-node2.yaml
#kubectl create -f kubernetes/rabbitmq-cluster-node3.yaml
copy kubernetes/rabbitmq-cluster-node2.yaml and replace "rabbitmq2" to "rabbitmqX" in the file.