<p>How can we authenticate to a mongodb database created by helm stable/mongo chart (from another pod in the same cluster)?</p>

<ul>
<li><p>The "one pod url" <code>mongodb://user:password@mongodb:27017/dbname</code> does not work because we have to authenticate to the admin pod</p></li>
<li><p>According to mongo documentation, we should use something like :
<code>mongodb://user:password@mongodb-1,mongodb-2,mongodb-3:27017/dbname</code>
but the chart only creates one service ?!</p></li>
</ul>

<p>I tried also to add <code>?authSource=admin&amp;replicaSet=rs0</code> at the url but authentication still fails..</p>

<p>I managed to connect with the following url (only as root) :
<code>mongodb://root:&lt;root_password&gt;@mongodb.mongodb:27017/&lt;db_name&gt;?authSource=admin&amp;replicaSet=rs0</code>
with the <code>--authenticationDatabase admin</code> of the <code>NOTES.txt</code> converted to <code>authSource=admin</code> url parameter</p>
