<p>I created a Mongodb service according to the Kubernetes <a href="http://kubernetes.io/docs/getting-started-guides/meanstack/" rel="noreferrer">tutorial</a>.</p>

<p>Now my question is how do I gain access to the database itself, with a client like Robomongo or similar clients? Just for making backups or exploring what data have been entered. </p>

<p>The mongo-pod and service only have an internal endpoint, and a single mount. </p>

<p>Is there any way to safely access this instance with no public endpoint?</p>

<p>Internally URI is <code>mongo:27***</code></p>

<p>You can use <code>kubectl port-forward mypod 27017:27017</code> and then just connect your mongodb client to <code>localhost:27017</code>.</p>

<p>If you want to stop, just hit <code>Ctrl+C</code> on the same cmd window to stop the process.</p>
