My jq Cheatsheet

kubectl with jq is so powerful

Stefanie Lai
Jul 26 · 6 min read

The dozens of types and thousands of instances in hundreds of namespaces make it super hard to fetch things I want. For instance, who are owners of certain resources?

kubectl’s options and flags, such as label-selector, go-templates, jsonpath, etc., can improve query efficiency by filtering and selection. However, these options usually are only supportive of regular operations and not applicable to all situations. Moreover, different options have different grammatical rules, making it difficult to understand and master them…