--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/df6617c3-cb9d-4826-846b-29d0abba84ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am using 1.1.6 ....your are using nodes to watch but I need to watch pods
On Wednesday, April 13, 2016 at 5:14:09 PM UTC+5:30, Priyadarshini Anand wrote:Hi,I want to use GET /api/v1/watch/namespaces/{namespace}/pods/{name} api to keep watching status(phase) of a given pod till the time pod is running phase unless timeout happens. How to pass time out and fieldSelector in this api? Please share some example.
I am trying https://<ip>/api/v1/watch/namespaces/default/pods/devmgmt-bd7ab?timeoutSeconds=5 but it is not getting time out.Thanks.
--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/ac154f7c-3599-4795-899a-e54944a8a228%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/25199a74-bb18-40b4-a02f-405baa2375fb%40googlegroups.com.
Thanks, I can see timeout working in 1.2*. Now, I want to watch endpoint and see if all addresses are included.Like, when I created service and replication controller with replica=10. I want to wait till all 10 replicas ip addresses are in output of call (or timeout happens) -GET http://10.213.17.80:8080/api/v1/watch/namespaces/default/endpoints/<svc_name>?watch=true&timeoutSeconds=50format in ip addresses in output:"subsets":[{"addresses":[{"ip":"172.17.100.2",....Is it required to add ?resourceVersion= in watch get call, when I add I get error - too old resource version: 929 (6169)
?watch=true&timeoutSeconds=50 :: what this mean? Keep watching at least till 50 seconds and then return output?
So, I run watch API and see if 10 address added in output, if not again run watch n number of times where n is specified
So, I run watch API and see if 10 address added in output, if not again run watch n number of times where n is specified
On Thu, Apr 14, 2016 at 12:37 PM, Priyadarshini wrote:Thanks, I can see timeout working in 1.2*. Now, I want to watch endpoint and see if all addresses are included.Like, when I created service and replication controller with replica=10. I want to wait till all 10 replicas ip addresses are in output of call (or timeout happens) -GET http://10.213.17.80:8080/api/v1/watch/namespaces/default/endpoints/<svc_name>?watch=true&timeoutSeconds=50format in ip addresses in output:"subsets":[{"addresses":[{"ip":"172.17.100.2",....Is it required to add ?resourceVersion= in watch get call, when I add I get error - too old resource version: 929 (6169)resourceVersion is not required, but if you don't specify it, you have no guarantee at what point the watch starts?watch=true&timeoutSeconds=50 :: what this mean? Keep watching at least till 50 seconds and then return output??watch=true - I think this one is unnecessary, since you already have "/watch/" in the adresstimeoutSeconds=50 means that watch will break after 50seconds
On Thu, Apr 14, 2016 at 12:33 PM, Wojciech Tyczynski wrote:
Yes - it will be in all stable 1.2.* releases. I think it's better to use the newest 1.2.* release, which is 1.2.2 now.
http://<ip>/api/v1/namespaces/default/endpoints/svc_name?watch=true&timeoutSeconds=10 --- not working - give output of as if watch not working
Also, fieldSelector not working.
http://<ip>/api/v1/watch/namespaces/default/endpoints/svc_name?timeoutSeconds=10 is working
There is still bug:http://<ip>/api/v1/namespaces/default/endpoints/svc_name?watch=true&timeoutSeconds=10 --- not working - give output of as if watch not working
--
You received this message because you are subscribed to the Google Groups "kubernetes-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/CAF3w2F6ArWuxPp7AeTyhgb0z2472fA-oB_BYT2xMehspdtTS5w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/CAPgfqyXC4CoKqrMG2EYvtPWaNyivzNbusVQn0taEukD6%2Bd2Sqw%40mail.gmail.com.