一、RabbitMQ扩容和缩容
### --- RabbitMQ扩容
[root@k8s-master01 rabbit-cluster]# kubectl get sts -n public-service
NAME READY AGE
rmq-cluster 3/3 41m
[root@k8s-master01 rabbit-cluster]# kubectl scale sts rmq-cluster --replicas=4 -n public-service
statefulset.apps/rmq-cluster scaled
### --- 查看扩容结果
[root@k8s-master01 rabbit-cluster]# kubectl get po -n public-service
NAME READY STATUS RESTARTS AGE
rmq-cluster-0 0/1 Running 0 10m
rmq-cluster-1 0/1 Running 0 10m
rmq-cluster-2 0/1 Running 0 10m
rmq-cluster-3 0/1 Running 0 10m
二、通过web控制台可以查看到新扩容的实例已经添加进来