I created a cluster in google cloud, deployed mongodb using help:
helm install my-release \
--set auth.rootPassword=password,auth.databases[0]="database",auth.usernames[0]="root",architecture=replicaset,auth.replicaSetKey="keykfjhewq",auth.enabled=true \
bitnami/mongodb
All is up, but when I exec into the pods and do rs.status() I get:
{
"ok" : 0,
"errmsg" : "command replSetGetStatus requires authentication",
"code" : 13,
"codeName" : "Unauthorized",
"$clusterTime" : {
"clusterTime" : Timestamp(1653254244, 1),
"signature" : {
"hash" : BinData(0,"EZ4IdSOklvKSvSmWVYU6Rr/VcaM="),
"keyId" : NumberLong("7100667090272518150")
}
},
"operationTime" : Timestamp(1653254244, 1)
}
What am I doing wrong?