I have a multi-service kubernetes deployment on GKE. My services are load balancers which take some time to init. During initiation time the services ingress URL's are pending.
Is there a way to wait for an init callback, which isn't:
My app deployment uses urls to dynamically allocate API URLs to clients (source urls for html). and I would like to have this feature for any deployment regardless of domain name.
P.S
My current hack is:
outer_ip = svc.status.load_balancer.ingress[0].ip
Suggestion: A callback of the style onReady(Service){}, chould specify a status API e.g. an error or a pending status rather than something which may change with implementation.