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 Platform (GCP) to run a Kubernetes cluster currently running on a single node.
I tried to us the externalIPs
Service configuration and to give at turns, the IPs of:
- the instance hosting the Kubernetes cluster (External IP; which also conincides with the IP address of the Kubernetes node as reported by
kubernetes describe node
) - the Kubernetes cluster endpoint (as reported by the Google Cloud Console in the details of the cluster)
- the public/external IP of another Kubernetes Service of type
LoadBalancer
running on the same node.
None of the above helped me reach my application using the Kubernetes Service with an externalIPs
configuration.
So, how can I publish a service on the Internet without using a LoadBalancer
-type Kubernetes Service.