deis / workflow

The open source PaaS for Kubernetes.
https://deis.com/workflow/
MIT License
1.3k stars 180 forks source link

Workflow without LBaaS #626

Closed cdupont closed 7 years ago

cdupont commented 7 years ago

Hi there, I installed Deis but without LBaaS. Details why are here: https://github.com/Waziup/Platform/issues/32 So my deis-router is configured with Service type = NodePort. I configured an ingress controller though, that allows me to configure an app on a URL such as myapp.mysite.com http://kubernetes.io/docs/user-guide/ingress/

Currently when I push an app:

git push deis master

It returns an url that is not valid (says http://leader-windmill.waziup.io/). I have to create an ingress resource myself to route the application:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: leader-windmill
  namespace: leader-windmill
spec:
  rules:
  - host: leader-windmill.waziup.io
    http:
      paths:
      - path: /
         backend:
          serviceName: leader-windmill
          servicePort: 80

Is it possible that deis uses my ingress controller automatically?

kmala commented 7 years ago

Currently no without any changes as the deis assumes deis router is the one through which traffic come and goes. For more discussion on it see https://github.com/deis/router/issues/292. But i am pretty sure it is easy to add that extra piece of code in the controller to create an ingress object after the successful deploy.