<p>I am trying depoly a replicaset of mongodb in my kind kubernetes.</p>
<p>Well, my first step is run thsi command:</p>
<pre><code>helm upgrade --install mongodb bitnami/mongodb 
--set mongodb.global.storageClass=standard
--set mongodbRootPassword=root 
--set mongodbUsername=mongoUser 
--set mongodbPassword=mongoUser 
--set mongodbDatabase=articles 
--set mongodb.persistence.size=5Gi 
--set mongodb.service.type=NodePort 
--set mongodb.service.nodePort=30005 
--set mongodb.metrics.enabled=false 
--set replicaSet.enabled=true
--namespace replicaset-data
</code></pre>
<p>But I have tow questions:</p>
<ul>
<li>How I can connect to this replicaSet?</li>
<li>The next question is about the persistent data. Y have a extraMounts defined y my kind kulster, but I not found the way to use it in this helm</li>
</ul>
<p>Could anyone help my in this?</p>
<p>A lot of Thanks!</p>

José Pablo Medina Grande
<blockquote>
<p>How I can connect to this replicaSet?</p>
</blockquote>
<p>You can use the K8s service to connect with these replicas <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">service type like LoadBalancer</a>, <a href="https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/" rel="nofollow noreferrer">Port-forward</a>, using ingress</p>
<blockquote>
<p>The next question is about the persistent data. Y have a extraMounts
defined y my kind kulster, but I not found the way to use it in this
helm</p>
</blockquote>
<p>You can use the <strong>PV</strong> and <strong>PVC</strong> with the K8s cluster to persist the data of your database.</p>
<p>Read more at : <a href="https://github.com/bitnami/charts/issues/3291" rel="nofollow noreferrer">https://github.com/bitnami/charts/issues/3291</a></p>
<p>Prameters : <a href="https://artifacthub.io/packages/helm/bitnami/mongodb#persistence-parameters" rel="nofollow noreferrer">https://artifacthub.io/packages/helm/bitnami/mongodb#persistence-parameters</a></p>
