码迷,mamicode.com
首页 > Web开发 > 详细

kubernetes docker 搭建rabbitmq集群

时间:2017-07-26 10:47:57      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:plugin   art   status   creat   ber   yam   dock   let   bit   

kubectl delete pod rabbitmq-node1 rabbitmq-node2 rabbitmq-node3

kubectl create -f pod-rabbitmq-node1-vm17.yaml
kubectl create -f pod-rabbitmq-node2-vm18.yaml
kubectl create -f pod-rabbitmq-node3-vm19.yaml

kubectl exec -ti rabbitmq-node2

kubectl exec rabbitmq-node1 rabbitmq-plugins enable rabbitmq_management
kubectl exec rabbitmq-node2 rabbitmq-plugins enable rabbitmq_management
kubectl exec rabbitmq-node3 rabbitmq-plugins enable rabbitmq_management


kubectl exec rabbitmq-node2 rabbitmqctl stop_app
kubectl exec rabbitmq-node2 rabbitmqctl join_cluster rabbit@vm17
kubectl exec rabbitmq-node2 rabbitmqctl start_app

kubectl exec rabbitmq-node3 rabbitmqctl stop_app
kubectl exec rabbitmq-node3 rabbitmqctl join_cluster rabbit@vm17
kubectl exec rabbitmq-node3 rabbitmqctl start_app


kubectl exec rabbitmq-node3 rabbitmqctl cluster_status

kubernetes docker 搭建rabbitmq集群

标签:plugin   art   status   creat   ber   yam   dock   let   bit   

原文地址:http://www.cnblogs.com/aibug/p/7237985.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!