<p>I just new in K8s. I try to self deploy k8s cloud in internal company server. And I have question how to I setup my K8s can allocation External IP for Service with Loabalancer. May you tell you how it work in GKE or EKS?</p>

Duc Vo
<p>Updated base on your comment.</p>
<p><code>What I mean how to EKS or GKE behind the scenes allocation ip, what is a mechanism?</code></p>
<p>Here's the <a href="https://docs.aws.amazon.com/eks/latest/userguide/pod-networking.html" rel="nofollow noreferrer">EKS</a> version and here's the <a href="https://cloud.google.com/architecture/gke-address-management-overview" rel="nofollow noreferrer">GKE</a> version. It's a complex thing, suggest you use these materials as the starting point before diving into technical details (which previous answer provided you the source). In case you thought of on-premises k8s cluster, it depends on the CNI  that you will use, a well known CNI is <a href="https://docs.projectcalico.org/networking/get-started-ip-addresses" rel="nofollow noreferrer">Calico</a>.</p>
