<p>I've created a kubenetes cluster on my Mac with docker-machine, following the documentation here:</p>

<p><a href="http://kubernetes.io/docs/getting-started-guides/docker/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/docker/</a></p>

<p>I can access the normal api from inside the instance on 127.0.0.1:8080, but I want to access it externally from my macbook.  I know there is a secure port :6443, but I'm unsure how to set up the credentials to access this port.</p>

<p>There are lots of instructions on how to do it on custom installs of kubernetes, but I don't know how to do it inside the docker containers I'm running.</p>

<p>Likely, you will want to use Virtual Box's <a href="https://www.virtualbox.org/manual/ch06.html#natforward" rel="nofollow">port forwarding</a> capabilities. An example from the documentation:</p>

<pre><code>VBoxManage modifyvm "MyVM" --natpf1 "k8srule,tcp,,6443,,6443"
</code></pre>

<p>This forwards port 6443 on all hosts interfaces to port 6443 of the guest. Port forwarding can also be configured through the VirtualBox UI.</p>
