Exposing Service from a BareMetal(Kubeadm) Build Kubernetes Cluster to the outside world. I am trying to access my Nginx as a service outside of the cluster to get NGINX output in the web browser.
For that, I have created a deployment and service for NGINX as shown below,
As per my search, found that we have below to expose to outside world
I would like to know all these 3 or any more approaches in such way it help me to learn new things.
GOAL
You need to set up MetalLB
to get an external IP address for the LoadBalancer
type services. It will give a local network IP address to the service.
Then you can do port mapping (configuration in the router) of incoming traffic of port 80
and port 443
to your external service IP address.
I have done a similar setup you can check it here in detail: