首页 > Web开发 > 详细

kubernetes docker 搭建rabbitmq集群

时间:2017-07-26 10:32:23      阅读:735      评论:0      收藏:0      [点我收藏+]

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集群

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!