<p>In my k8s cluster the ingress does not work on the k8s cluster of digital ocean. I don't get an external ip and so it is not available. Locally there seems to be no problem.</p>

<p>I already searched a lot and tried some tutorials, f.e. <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes" rel="noreferrer">https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes</a>.
But it seems that it is an older version and the solution (and even the links) does not work anymore.</p>

<p>The nginx-ingress should call the service of a website backend which is on port 8080. </p>

<p>I stripped down my ingress code to the following one:</p>

<pre><code>kind: Ingress
metadata:
  name: test-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
      - path: /
        backend:
          serviceName: website
          servicePort: 8080
</code></pre>

<p>With <code>kubectl get ing</code> I see the ingress, but it has no address. It looks like this</p>

<pre><code>NAME           HOSTS   ADDRESS   PORTS   AGE
test-ingress   *                 80      50s
</code></pre>

<p>Can anyone help me out and tell me what I have to do to get my k8s cluster running?</p>

<p>Thanks
peter</p>

Peter Lang
<p>Firstly, if you are using Nginx Ingress Controller, you don't need to see ingress address. </p>

<p>When you install <a href="https://github.com/kubernetes/ingress-nginx" rel="noreferrer">Nginx Ingress Controller</a> to your k8s cluster, it creates Load Balancer to handle all incoming requests. Make sure that below part completed as explained in <strong>Step 2</strong> of <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes" rel="noreferrer">guide</a> you posted and you are able to see LoadBalancer External ip address.</p>

<pre><code>$ kubectl get svc --namespace=ingress-nginx
</code></pre>

<p>You should see an external IP address, corresponding to the IP address of the DigitalOcean Load Balancer:</p>

<pre><code>Output
NAME            TYPE           CLUSTER-IP      EXTERNAL-IP       PORT(S)                      AGE
ingress-nginx   LoadBalancer   10.245.247.67   203.0.113.0   80:32486/TCP,443:32096/TCP   20h
</code></pre>

<p>In above case, after deploying your ingress resource, if you hit <code>http://203.0.113.0</code> you will get your <code>website:8080</code> backend service. </p>

<p>Hope it helps!</p>
