On , I learnt ...
How to syntax-highlight kubectl YAML output
By default, the output of:
kubectl describe pod $POD_ID
is a hard-to-read YAML blob. To make it more readable, pipe it through bat
:
kubectl describe pod $POD_ID | bat -l yaml
The -l
option tells bat
which language to use to highlight the context piped
into STDIN.