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

How to expose mongo-replica set outside rancher #825

@sachingoel

Description

@sachingoel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions