helm 部署pulsar集群

1.下载pulsar-helm-chart包

https://github.com/apache/pulsar-helm-chart/tree/pulsar-3.0.0

2.进入chart目录

cd pulsar-helm-chart-pulsar-3.0.0/charts/pulsar

3.安装集群

注意:记得修改zookeeper节点数,不然达不到高可用

helm repo add apache https://pulsar.apache.org/charts 
helm install pulsar-cluster -n pulsar-cluster --set initialize=true -f values.yaml apache/pulsar --version 3.0.0` 

4.配置pulsar-manager账号

CSRF_TOKEN=$(curl http://node1:32764/pulsar-manager/csrf-token)
curl \
   -H 'X-XSRF-TOKEN: $CSRF_TOKEN' \
   -H 'Cookie: XSRF-TOKEN=$CSRF_TOKEN;' \
   -H "Content-Type: application/json" \
   -X PUT http://node1:32764/pulsar-manager/users/superuser \
   -d '{"name": "admin", "password": "DFXSUvMfMG3C", "description": "test", "email": "username@test.org"}'

5.卸载

helm uninstall pulsar-cluster -n pulsar-cluster

6.Docs

https://github.com/apache/pulsar-helm-chart/releases/tag/pulsar-3.0.0

https://github.com/apache/pulsar-helm-chart/tree/pulsar-3.0.0

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容