K8S部署mongodb-sharded-cluster(7.0.2)副本分片

添加源

helm repo add bitnami https://charts.bitnami.com/bitnami

指定版本拉取
helm pull --repo https://charts.bitnami.com/bitnami mongodb-sharded --version 7.0.5

安装时选择SCRAM-SHA-1默认是SCRAM-SHA-256

helm install -n prod mymongodb mongodb-sharded --values ./mongodb-sharded/values.yaml \
--set security.enabled=true \
--set "security.authentication.saslMechanisms[1]"="SCRAM-SHA-1"
helm install -n prod mymongodb mongodb-sharded --values ./mongodb-sharded/values.yaml \
--set security.enabled=true \
--set security.authentication.saslMechanisms=["SCRAM-SHA-256","SCRAM-SHA-1=false"]
我的设置

K8S部署mongodb-sharded-cluster(7.0.2)副本分片_第1张图片

目前还是最新版

K8S部署mongodb-sharded-cluster(7.0.2)副本分片_第2张图片
客户端连接时
K8S部署mongodb-sharded-cluster(7.0.2)副本分片_第3张图片

你可能感兴趣的:(kubernetes,mongodb,容器)