<p>For development purposes I try to use Minikube. I want to test how my application will catch an event of exposing a service and assigning an External-IP.
When I exposed a service in Google Container Engine quick start tutorial I could see an event of External IP assignment with:
<code>kubectl get services --watch</code></p>

<p>I want to achieve the same with Minikube (if possible).</p>

<p>Here is how I try to set things up locally on my OSX development machine:</p>

<pre><code>minikube start --vm-driver=xhyve
minikube addons enable ingress
kubectl run echoserver --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl expose deployment echoserver --type="LoadBalancer"
kubectl get services --watch
</code></pre>

<p>I see the following output:</p>

<pre><code>NAME         TYPE           CLUSTER-IP   EXTERNAL-IP   PORT(S)          AGE
echoserver   LoadBalancer   10.0.0.138   &lt;pending&gt;     8080:31384/TCP   11s
kubernetes   ClusterIP      10.0.0.1     &lt;none&gt;        443/TCP          4m
</code></pre>

<p>External-Ip field never gets updated and shows <strong>pending</strong> phase. Is it possible to achieve external IP assignment with Minikube?</p>

<p>On GKE or AWS installs, the external IP comes from the cloud support that reports back to kube API the address that the created LB was assigned.</p>

<p>To have the same on minikube you'd have to run some kind of an LB controller, ie. <a href="https://github.com/kubernetes/contrib/tree/master/service-loadbalancer" rel="nofollow noreferrer">haproxy</a> one, but honestly, for minikube it makes little sense, as you have single IP that you know in advance by <code>minikube ip</code> so you can use NodePort with that knowledge. LB solution would require setting some IP rangethat can be mapped to particular nodeports, as this is effectively what LB will do - take traffic from extIP:extPort and proxy it to minikubeIP:NodePort.</p>

<p>Unless your use case prevents you from it, you should consider Ingress as the way of ingesting traffic to your minikube.</p>
