<p>Trying to teach myself on how to use Kubernetes, and having some issues.  </p>

<p>I was able to set up a cluster, deploy the nginx image and then access nginx using a service of type NodePort (once I added the port to the security group inbound rules of the node).</p>

<p>My next step was to try to use a service of type LoadBalancer to try to access nginx.</p>

<p>I set up a new cluster and deployed the nginx image.</p>

<pre><code>kubectl \
       create deployment my-nginx-deployment \
       --image=nginx
</code></pre>

<p>I then set up the service for the LoadBalancer</p>

<pre><code>kubectl expose deployment my-nginx-deployment --type=LoadBalancer --port=80 --target-port=8080 --name=nginxpubic
</code></pre>

<p>Once it was done setting up, I tried to access nginx using the LoadBalancer Ingress (Which I found from describing the LoadBalancer service).  I received a This page isn’t working error.</p>

<p>Not really sure where I went wrong.</p>

<p>results of kubectl get svc</p>

<pre><code>NAME         TYPE           CLUSTER-IP      EXTERNAL-IP                                                               PORT(S)        AGE
kubernetes   ClusterIP      100.64.0.1      &lt;none&gt;                                                                    443/TCP        7h
nginxpubic   LoadBalancer   100.71.37.139   a5396ba70d45d11e88f290658e70719d-1485253166.us-west-2.elb.amazonaws.com   80:31402/TCP   7h
</code></pre>

kayduh
<p>From the nginx dockerhub page , I see that the container is using port 80.</p>

<p><a href="https://hub.docker.com/_/nginx/" rel="nofollow noreferrer">https://hub.docker.com/_/nginx/</a></p>

<p>It should be like this:</p>

<pre><code>kubectl expose deployment my-nginx-deployment --type=LoadBalancer --port=80 --target-port=80 --name=nginxpubic
</code></pre>

<p>Also,
make sure the service type loadbalancer is available in your environement.</p>

<p><strong>Known Issues for minikube installation</strong></p>

<pre><code>Features that require a Cloud Provider will not work in Minikube. These include:
LoadBalancers

Features that require multiple nodes. These include:
Advanced scheduling policies
</code></pre>
