Im deploying shard cluster using config as follows:
apiVersion: mongodb.com/v1
kind: MongoDB
metadata:
name: mongo-shard
spec:
shardCount: 2
mongodsPerShardCount: 3
mongosCount: 1
configServerCount: 3
version: “4.2.2-ent”
opsManager:
configMapRef:
name: mongodb-project
credentials: mongo-api-keys
type: ShardedCluster
persistent: true
But status of my deployment is:
$ kubectl get pods -n mongodb
$ kubectl describe pod/mongo-shard-0-0 -n mongodb
Type Reason Age From Message
Warning Unhealthy 2m1s (x8190 over 10h) kubelet Readiness probe failed:
$ kubectl describe pod/mongo-shard-mongos-0 -n mongodb
Events:
Type Reason Age From Message
Warning Unhealthy 3m8s (x8180 over 10h) kubelet Readiness probe failed:
Someone please help