How To Expose a Kubernetes Service Using an Ingress Resource?
Ingress means the act of going in or entering. Also, a means or place of entry or entryway.
That’s the job of a Kubernetes Ingress Resource.
The primitive approach of exposing a service to the outside world involves a Kubernetes NodePort service to the outside world.Â
For reference, a Node Port service is a special type of service in Kubernetes.
For this service type, each cluster node opens a port on the node itself. Any incoming traffic received on that port is directed to the underlying service and the associated pods.
But what makes the Kubernetes Ingress resource special?
That’s because Ingress does so much heavy lifting in terms of features such as:
- Load balancing
- SSL termination