I want to get list of pods with label ms=abc, when I use http://ip:8080/api/v1/namespaces/default/pods?fieldSelector=metadata.labels.ms%%3Dabc , it returns me list of all pods not filtered one based on pods with label ms=abc. Someone, please help how to get list of pods based on labels(I want rest api). I tried pods?watch=true&fieldSelector=metadata.labels.ms%%3Dabc&timeoutSeconds=5 but that is also showing same results as the previous one.
--
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/6123f31a-427e-405e-a3da-7ccc0498768e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ok fine.and If I want ms=abc or ms=xyz
ms in (abc,xyz)
I tried --- http://ip:8080/api/v1/namespaces/default/pods?labelSelector=ms%3Dabc\,ms%3Dxyz ===> but not working
http://ip:8080/api/v1/namespaces/default/pods?labelSelector=ms in (abc,xyz)
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/b2770f3c-fdca-4757-8dfb-5363b6a62b80%40googlegroups.com.