ReplicaSet Failed State using operator

Hi,

Im trying to implement MongoDB Kubernetes operator enterprise on my local minibike machine. However after applying a replica set it fails and i get the following error:

kubectl logs -f deployment/mongodb-enterprise-operator -n mongodb

{“level”:“error”,“ts”:1595706141.912315,“caller”:“workflow/failed.go:67”,“msg”:“Failed to prepare Ops Manager connection: Error reading or creating project in Ops Manager: Get http://ops-manager-svc.mongodb.svc.cluster.local:8080/api/public/v1.0/orgs?itemsPerPage=500&pageNum=1: dial tcp 172.18.0.10:8080: connect: connection refused”,“ReplicaSet”:“mongodb/ops-manager-db-replica”,“stacktrace”:“github.com/10gen/ops-manager-kubernetes/pkg/controller/operator/workflow.failedStatus.Log\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/pkg/controller/operator/workflow/failed.go:67\ngithub.com/10gen/ops-manager-kubernetes/pkg/controller/operator.(*ReconcileCommonController).updateStatus\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/pkg/controller/operator/common_controller.go:233\ngithub.com/10gen/ops-manager-kubernetes/pkg/controller/operator.(*ReconcileMongoDbReplicaSet).Reconcile\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/pkg/controller/operator/mongodbreplicaset_controller.go:76\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:246\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:201\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/data/mci/4fe86eb1346d553a9277f028ff80fe35/src/github.com/10gen/ops-manager-kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88”}

I have been using the following guides to try and implement this.
.https://www.mongodb.com/blog/post/running-mongodb-ops-manager-in-kubernetes
.Install MongoDB Enterprise Kubernetes Operator | MongoDB

replicaset.yml

---
apiVersion: mongodb.com/v1
kind: MongoDB
metadata:
  name: ops-manager-db-replica
  namespace: mongodb
spec:
  members: 3
  type: ReplicaSet
  version: 4.2.2-ent

  persistent: false

  opsManager:
    configMapRef:
      name: ops-manager-connection
  credentials: some-mongodb-secret

ops-manager.yml

apiVersion: mongodb.com/v1
kind: MongoDBOpsManager
metadata:
  name: ops-manager
  namespace: mongodb
spec:
  # the version of Ops Manager distro to use
  version: 4.2.4

  # the name of the secret containing admin user credentials.
  adminCredentials: ops-manager-admin-secret

  externalConnectivity:
    type: NodePort

  # the Replica Set backing Ops Manager. 
  # appDB has the SCRAM-SHA authentication mode always enabled
  applicationDatabase:
    members: 3

Secrets

 kubectl create secret generic ops-manager-admin-secret  \
--from-literal=Username="admin@domain.com" \
--from-literal=Password="domainadmin1." \
--from-literal=FirstName="Kay" \
--from-literal=LastName="K" -n mongodb


kubectl -n mongodb create secret generic some-mongodb-secret --from-literal="user=admin@domain.com" --from-literal="publicApiKey=e5cd7422-d4ff-4b74-8b9d-f4d9374ab031"

It’s the first time im building a mongodb operator. So a long with the issue i have two extra questions

  1. First im not sure if i should be using the enterprise version or the community version, what are the core differences are they both free?

  2. How could i use AWS EBS for my volume persistancy?

First im not sure if i should be using the enterprise version or the community version, what are the core differences are they both free?

The community and enterprise contain different application containers. Enterprise is the paid version of MongoDB and comes with apps like Ops Manager in addition to mongoDB database.

How could i use AWS EBS for my volume persistancy?

The operator should work if storage has been configured correctly.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.