I am using Kubernetes Mongodb Community Operator to create a Replicaset to scale my mongodb setup. However, i am not sure how read and write operations are directed towards the primary and secondary replicas. Please help me with the following questions:
- Is it the responsibility of Kubernetes Community Operator to forward the read operations to the secondary replicas and write operations to the primary one and if true, how can we verify it?
- If the above questions answers to false, then is there a way to separate the read and write calls to secondary and primary replicas respectively?
Thanks in advance