1.下載pulsar-helm-chart包
https://github.com/apache/pulsar-helm-chart/tree/pulsar-3.0.0
2.進(jìn)入chart目錄
cd pulsar-helm-chart-pulsar-3.0.0/charts/pulsar
3.安裝集群
注意:記得修改zookeeper節(jié)點(diǎn)數(shù)痘儡,不然達(dá)不到高可用
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