本文主要是介绍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)副本分片的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!