一、kafka和zookeeper集群扩容和缩容
### --- 扩容kafka和zookeeper:扩容副本数均为2
~~~ 扩容kafka副本数为2;在生产环境中,不可以使用2个副本数,当前环境资源有限,
~~~ 只是为查看效果
[root@k8s-master01 kafka]# pwd
/root/README/install-some-apps/zookeeper-kafka/kafka
[root@k8s-master01 kafka]# helm upgrade kafka -n public-service --set zookeeper.enabled=false --set replicaCount=2 --set externalZookeeper.servers=zookeeper .
### --- 扩容zookeeper
[root@k8s-master01 zookeeper]# pwd
/root/README/install-some-apps/zookeeper-kafka/zookeeper
[root@k8s-master01 zookeeper]# helm upgrade zookeeper -n public-service --set replicaCount=2 --set auth.enabled=false --set allowAnonymousLogin=true .
### --- 查看扩容后结果
[root@k8s-