how to get list of pod names using kubernetes rest api (jsonpath)

6/16/2018

is jsonPath supported in kubernetes http api ?

for ex; how the following translates to in http API ?

kubectl get pods -o=jsonpath='{.items[0]}'
-- user19937
kubernetes

1 Answer

6/16/2018

It's not supported by the API, you would need to evaluate that jsonpath against the API response.

-- Jordan Liggitt
Source: StackOverflow