If I have MongoDB, and I would like to containerize it using docker and using Kubenetes wants to run it as say 3 replicas. I have given a volume for data outside the container.
Will now, all the 3 replicas (of MongoDB) point to the same volume and hence operate on the same data?
Who maintains the consistency in this case. Is it Kubernetes (or) MongoDB?