Hi,
I have deployed a mongoDB cluster on Kubernetes using the Operator
apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDB
metadata:
name: mongocluster
spec:
crVersion: 1.16.0
image: perconalab/percona-server-mongodb-operator:main-mongod6.0
allowUnsafeConfigurations: true
upgradeOptions:
apply: disabled
schedule: "0 2 * * *"
# secrets:
# users: minimal-cluster
secrets:
users: my-cluster-name-secrets
....
The pods are running fine and I have exposed them as LoadBalancer Service
mongocluster-rs0 ClusterIP None <none> 27017/TCP 25m
mongocluster-rs0-0 LoadBalancer 10.43.26.67 192.168.100.108 27017:30927/TCP 25m
mongocluster-rs0-1 LoadBalancer 10.43.89.172 192.168.100.109 27017:31089/TCP 25m
mongocluster-rs0-2 LoadBalancer 10.43.32.129 192.168.100.110 27017:31433/TCP 25m
However I see none of the users are created,
"mongodb://192.168.100.108:27017,192.168.100.109:27017,192.168.100.110:27017/?replicaSet=rs0" -u databaseAdmin --tls=false
Authentication Fails .
For example
"10.42.0.15:51346","extraInfo":{},"error":"UserNotFound: Could not find user \"clusterMonitor\" for db \"admin\""}}
{"t":{"$date":"2024-01-31T16:27:39.595+00:00"},"s":"I", "c":"-", "id":20883, "ctx":"conn157","msg":"Interrupted operation as its client disconnected","attr":{"opId":2918}}
Same for any userIDs like databaseAdmin and clusterAdmin
Any pointers will really help.
Best,
J