Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

How to expose mongo-replica set outside rancher #825

Open
sachingoel opened this issue Dec 8, 2018 · 1 comment
Open

How to expose mongo-replica set outside rancher #825

sachingoel opened this issue Dec 8, 2018 · 1 comment

Comments

@sachingoel
Copy link

sachingoel commented Dec 8, 2018

I was trying to deploy a mongo-replicaset from rancher catalogue and it didn't provide any options for port mapping while configuring it.
And after its provision if you try to update its port mapping it throws this error: Validation failed in API: StatefulSet.apps "mongodb-replicaset-ftlhb" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden.

I have also tried to create a load balancer that resolves to mongo-replicaset service discovery that finally connects to mongo replica workloads but this method allows only "layer 7" load balancing and mongo db communicates on layer 4(TCP/IP). So this strategy also fails.

How to expose a replica so that external interface resolves to master of mongo-db replica set.

@tawsif93
Copy link

Make a new service that points to mongo replica set and set the nodeport to a port, using this you can access mongo replicaset externally.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants