<p>I run the CoreOS k8s cluster on Mac OSX, which means it's running inside VirtualBox + Vagrant</p>

<p>I have in my service.yaml file:</p>

<pre><code>spec:
  type: NodePort
</code></pre>

<p>When I type:</p>

<pre><code>kubectl get services
</code></pre>

<p>I see:</p>

<pre><code>NAME             CLUSTER_IP       EXTERNAL_IP   PORT(S)    SELECTOR                                
kubernetes       10.100.0.1       &lt;none&gt;        443/TCP    &lt;none&gt;                             
my-frontend      10.100.250.90    nodes         8000/TCP   name=my-app
</code></pre>

<p>What is the "nodes" external IP? How do I access my-frontend externally?</p>

<p>In addition to "NodePort" types of services there are some additional ways to be able to interact with kubernetes services from outside of cluster:</p>

<ul>
<li>Use service type "LoadBalancer". It works only for some cloud providers and will not work for virtualbox, but I think it will be good to know about that feature. <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">Link to the documentation</a></li>
<li>Use one of the latest features called "ingress". Here is description from manual <strong>"An Ingress is a collection of rules that allow inbound connections to reach the cluster services. It can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc."</strong>. <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">Link to the documentation</a></li>
<li>If kubernetes is not strict requirements and you can switch to latest openshift origin (which is "kubernetes on steroids") you can use origin feature called "router".

<ul>
<li><a href="https://docs.openshift.org/latest/architecture/index.html" rel="nofollow noreferrer">Information about openshift origin</a>. </li>
<li><a href="https://docs.openshift.org/latest/architecture/core_concepts/routes.html" rel="nofollow noreferrer">Information about openshift origin routes</a></li>
</ul></li>
</ul>
