zookeeper和kafka使用bitnami的开源项目安装
官方文档:https://docs.bitnami.com/tutorials/deploy-scalable-kafka-zookeeper-cluster-kubernetes/
bitnami官网:https://bitnami.com/stacks/helm
- 添加helm源
helm repo add bitnami https://charts.bitnami.com/bitnami
- 安装zookeeper
helm install zookeeper bitnami/zookeeper \
--set replicaCount=3 \
--set auth.enabled=false \
--set allowAnonymousLogin=true \
--set persistence.enabled=false
- 安装kafka
注意要和zookeeper安装到同一个命名空间下
helm install kafka bitnami/kafka \
--set zookeeper.enabled=false \
--set replicaCount=3 \
--set externalZookeeper.servers=zookeeper \
--set persistence.enabled=false