How can I set external IP?

Hi,

I am practicing Kubernetes on Google cloud. I wonder how I can access the NodePort via external IP? Now, it is .

image

Thank you.

Hi @minh_duc , External-IP feature is supported only in non-cloud deployments. For cloud deployments, use the load balancer services for automatic deployment of a cloud load balancer to target the endpoints of a service. You can refer here : Exposing an External IP Address to Access an Application in a Cluster | Kubernetes for different ways to expose your cluster on GCP. It may cost you extra buck to create the LoadBalancer in GCP.

1 Like