How do I setup an ingress on digitalocean kubernetes

I’ve been trying out the new kubernetes product by DO and so far it’s going great. While I can create LoadBalancer services, I don’t seem to be able to create an ingress. My config:

apiVersion: extensions/v1beta1
kind: Ingress
  name: loadbalancer-https
    - hosts:
      secretName: ssl-example-com
    - host:
          - path: /admin
              serviceName: admin
              servicePort: 3000
          - path: /user
              serviceName: user
              servicePort: 3001
          - path: /
              serviceName: root
              servicePort: 80

The ssl secret is already deployed to the cluster (and the actual hostname has been replaced with ‘example’ here). I’ve also tried without ssl and also tried with "nginx" meta tag. Neither seemed to work. Am I missing something?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi, and thanks for your question!

We actually just published How to Set Up an Nginx Ingress with Cert-Manager on DigitalOcean Kubernetes. Hope this tutorial helps!

The generic steps worked for me:

kubectl apply -f
kubectl apply -f

The verification steps from the doc checked out, and I can see the load balancer the process created in the do dashboard.

You can probably do the same with a single step via the Helm installation (also documented on the nginx-ingress/deploy page). That’s how we deploy it at work (on an ACS cluster in Azure).

@aaroncoinmode @maartje Thank you so much for your responses.

I have the same issue. I am new in Kubernates…

I already took a look at the pages you mentioned. And there are generic command and cloud specific command. And there is no mention about cloud specific command for DO. Does it mean I only need to run generic command?