Difference between watch endpoints?

10/6/2015

I'm interested in watching a stream of Events from Kubernetes, to determine whether a deployment was successful, or if any of the Pods were unable to be scheduled.

I could call the endpoint /api/v1/watch/events, or I could call /api/v1/events?watch=true. Is there a difference between those two? I'm confused about the purpose of them.

Thanks.

-- JonM
kubernetes

1 Answer

10/6/2015

We're making watch a query param and removing it from the path (legacy form). You should call /api/v1/events?watch=true. See more discussions here if you're interested.

-- janetkuo
Source: StackOverflow