Cluster created in Rancher with Amazon EKS.
MongoDB replicaset was created as a catalog app in Rancher.
Services in the cluster can successfully connect the the database with this connection string.
mongodb://mongodb-replicaset.mongodb-replicaset.svc.cluster.local:27017/tradeit_system?replicaSet=rs
I want to view and edit data in the db. In a local db you can do it easily by the command mongo --port 27017
.
Similarly is there a way to connect to the one one on kubernetes. Either from the terminal or using an application like Robo 3t?
EDIT
The replicaset doesn't show when I do.
kubectl get deployments --all-namespace
kubectl get pods --all-namespaces
Show that it runs in 3 pods mongodb-replicaset-0, mongodb-replicaset-1, mongodb-replicaset-2.