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 [email protected]
kubectl exec rabbitmq-node2 rabbitmqctl start_app
kubectl exec rabbitmq-node3 rabbitmqctl stop_app
kubectl exec rabbitmq-node3 rabbitmqctl join_cluster [email protected]
kubectl exec rabbitmq-node3 rabbitmqctl start_app
kubectl exec rabbitmq-node3 rabbitmqctl cluster_status