添加仓库
helm repo add bitnami https://charts.bitnami.com/bitnami
编写values.yaml
image:
repository: nexus-docker.xxx/bitnami/zookeeper
persistence:
size: "4Gi"
storageClass: longhorn
replicaCount: 3
service:
type: NodePort
port: 32312
安装
helm upgrade --install zookeeper bitnami/zookeeper -n [命名空间] -f values.yaml
卸载
helm uninstall zookeeper -n [命名空间]
查看
kubectl get pods -n [命名空间]
#看集群状态
zkServer.sh status