Ramit Sharma:
How to search a key in the -o json to be later used in jsonpath query?
Daz Mac:
kubectl get pods -o json | jq -c ‘path(…)|[.[]|tostring]|join(“.”)’
Replace pods with nodes or deployment etc…
The above command (mentioned in kubernetes cheatsheet) will get a list of all keys you can use in jsonpath
Ramit Sharma:
thank you
Daz Mac:
You might need to install jq, but that is straightforward.