hobby-kube / guide

Kubernetes clusters for the hobbyist.
MIT License
5.57k stars 258 forks source link

Is it possible to have multiple ingress controllers? #61

Closed jokogr closed 5 years ago

jokogr commented 5 years ago

Is it possible to have multiple ingress controllers, one per node?

I was thinking about designing a multi-cloud cluster with one node per different cloud provider and using global server load balancing.

pstadler commented 5 years ago

This should be possible using a NodePort service type. See this manifesto for example: https://github.com/kubernetes/ingress-nginx/blob/master/deploy/provider/baremetal/service-nodeport.yaml

For what it's worth, the current situation using hostPort to bind to low ports is probably outdated and should be changed to leverage the NodePort service type.

pstadler commented 5 years ago

So it turned out that NodePort does not work in our case. I suggest that you change your ingress controller from Deployment to DaemonSet. In this case you would have an ingress controller running on each host.