<p>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 !!</p>

user2523933
<p>Deploying Statefull apps in K8s is really challenging when you have multiple replicas. Because as you said, all the replicas should aware of <code>CRUD</code> operations</p>

<p>For this, you have to deploy MongoDB as cluster and define <code>StatefulSets</code>. Below are the links starting point to explore more.</p>

<ul>
<li><p><a href="https://kubedb.com/docs/0.9.0/guides/mongodb/clustering/replicaset/" rel="nofollow noreferrer">https://kubedb.com/docs/0.9.0/guides/mongodb/clustering/replicaset/</a></p></li>
<li><p><a href="http://k8smongodb.net/" rel="nofollow noreferrer">http://k8smongodb.net/</a></p></li>
<li><p><a href="https://kubernetes.io/blog/2017/01/running-mongodb-on-kubernetes-with-statefulsets/" rel="nofollow noreferrer">https://kubernetes.io/blog/2017/01/running-mongodb-on-kubernetes-with-statefulsets/</a> </p></li>
</ul>
