I would like to avoid using type: \"LoadBalancer\"
for a certain Kubernetes Service, but still to be able to publish it on the Internet. I am using Google Cloud Pla
There's another option: set the hostNetwork
flag on your pod.
For example, you can use helm3 to install nginx this way:
helm install --set controller.hostNetwork=true nginx-ingress nginx-stable/nginx-ingress
The nginx is then available at port 80 & 443 on the IP address of the node that runs the pod. You can use node selectors or affinity or other tools to influence this choice.