You’ve created your application in Kubernetes. You’ve got the pods up and running. And you’re ready to unveil your brilliant application. But how do your end users connect?
The simplest way would be to create a LoadBalancer service and attach it to the service that needs to be exposed externally.
Another option would be to set up a NodePort service and then set up a LoadBalancer in front of it. In the LoadBalancer, you would manually create a routing rule to forward all your traffic to the NodePort.
But what if you have more than one endpoint to expose? If you went the first route, you would end up having to pay for all the new LoadBalancers. If you took the second option, you need to start maintaining all the new routing rules manually.
Or, you could create an ingress controller.(more…)