我正试着用你的头盔图在AKS上安装FIWARE Orion。我使用以下命令安装了MongoDB
helm repo add azure-marketplace https://marketplace.azurecr.io/helm/v1/repo helm install my-release azure-marketplace/mongodb
因此,我在values.yaml中对MongoDB进行了如下配置:
## database configuration
db:
# -- configuration of the mongo-db hosts. if multiple hosts are inserted, its assumed that mongo is running as a replica set
hosts: [my-release-mongodb]
# - my-release-mongodb
# -- the db to use. if running in multiservice mode, its used as a prefix.
name: orion
# -- Database authentication (not needed if MongoDB doesn't use --auth)
auth:
# --user for connecting mongo
user: root
# -- password to be used on mongo
password: mypasswd
# -- the MongoDB authentication mechanism to use in the case user and password is set
#mech: SCRAM-SHA-1我使用命令: helm install test orion
当我在pod日志中看到这个错误时,我想一定是出了什么问题;
kubectl logs test-orion-7dfcc9c7fb-8vbgw
time=2021-05-28T19:50:29.737Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocContextCachePersist.cpp[59]:mongocContextCachePersist | msg=Database Error (persisting context: command insert requires authentication)你能帮我弄一下这个吗?
致以良好的问候约翰
发布于 2021-06-07 14:15:15
你应该确保mongo-db在"my-release-mongodb:27017“上是可用的,你可以使用"kubectl get services”。除此之外,请确保"root:mypasswd“实际上是mongodb中设置的凭据。
https://stackoverflow.com/questions/67744899
复制相似问题