LoadBalancer service type is used by default when deploying in cloud and assumes there is loadbalancer present usually AWS ELB or GKE loadbalancer which is not the case for on prem installation of K8s. At least this is what I know. If I'm wrong, please correct me.
In this scenario using an Ingress controller will work.
https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class
LoadBalancer service type is used by default when deploying in cloud and assumes there is loadbalancer present usually AWS ELB or GKE loadbalancer which is not the case for on prem installation of K8s. At least this is what I know. If I'm wrong, please correct me. In this scenario using an Ingress controller will work. https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class