<p>I have a process where I use a Kubernetes client to build a deployment and a service. This process works fine but I have to wait some time for google to assign it an external IP. I cant seem to find anything in googles docs about a possible event emitter for when this process is done. Is there a way to programmatically pass or configure a request that can be made to a REST api that could go out and retrieve the info once it its ready?</p>

pwborodich
<p>Yes. I assume that you mean to assign a <a href="https://kubernetes.io/docs/concepts/services-networking/#loadbalancer" rel="nofollow noreferrer">LoadBalancer</a> type of address to your Kubernetes <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">service</a>. You can manually query the GCP API to see if your Load Balancer IP has been allocated. For example, <a href="https://cloud.google.com/compute/docs/reference/rest/v1/addresses/get" rel="nofollow noreferrer">GET</a> a resource address.</p>

<p>You can also use the <a href="https://cloud.google.com/sdk/gcloud/reference/compute/addresses/" rel="nofollow noreferrer">gcloud</a> command.</p>

<p><a href="https://cloud.google.com/load-balancing/docs/apis" rel="nofollow noreferrer">Here is</a> a list of all the GCP APIs related to load balancing that you can use.</p>
