Pipe kubectl JSON into jq for flexible filtering.

Section: Go Templates, Custom Columns, and jq-Friendly Patterns

Pretty JSON with jq

bash
bash
kubectl get deployment web -n payments -o json | jq
Explanation

Pipe kubectl JSON into jq for flexible filtering.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Go Templates, Custom Columns, and jq-Friendly Patterns
Node capacity custom columns
Show capacity data in a concise table.
OpenIn sheetbashsame section
Go template pod phase
Render output using Go templates.
OpenIn sheetbashsame section
Search YAML output
Extract YAML fields with yq.
OpenIn sheetbashsame section
List pod names
Print all pod names in a namespace.
Render kustomization
Build a kustomization without applying it.
List pod images
Print pod names and container images.