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 metadata: name: loadbalancer-https spec: tls: - hosts: - demo1.example.com secretName: ssl-example-com rules: - host: demo1.example.com http: paths: - path: /admin backend: serviceName: admin servicePort: 3000 - path: /user backend: serviceName: user servicePort: 3001 - path: / backend: 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
kubernetes.io/ingress.class: "nginx" meta tag. Neither seemed to work. Am I missing something?