My question is How Insert,Update,Delete query will go to same container when multiple container of mongod running in Kubernetes Cluster ? Any Help would be appreciated !!
Deploying Statefull apps in K8s is really challenging when you have multiple replicas. Because as you said, all the replicas should aware of CRUD
operations
For this, you have to deploy MongoDB as cluster and define StatefulSets
. Below are the links starting point to explore more.