Yes!  Our API supports watch operations on every type.  Check out the
swagger docs and look for "watch"
On Jun 16, 2016 8:38 PM, "kant kodali" <[email protected]> wrote:

> Hi Guys,
>
> I am using headless services for our application and as I deploy more pods
> or if a pod crashes and reboots I understand that DNS records will be
> updated but is there anything in Kubernetes than push those updated
> endpoints to my own process such that my process can do load balancing and
> service discovery?
>
> By push I mean something like Ajax push or other way can be Pub-Sub where
> my program can subscribe to certain events and starts listening for those
> changes?
>
> I am trying to avoid polling. other words I shouldn't write a program that
> constantly polls a http endpoint to see if there any changes like code below
>
> while(true) {  // This is polling and I am trying to avoid to write this
> code
>      curl http://kubernetes/watch_for_changes_in_the_dns_records
>      sleep(1 second);
> }
>
> push will be more like pseudo code below. pretty much attaching a listener
> or something and calling the callback when there are new endpoints.
>
> url = http://kubernetes/watch_for_changes_in_the_dns_records;
> url.onUpdate(function() {
>    update_dns_records
> });
>
> --
> You received this message because you are subscribed to the Google Groups
> "Containers at Google" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-containers.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to