kubectl get
command has this flag -o
to format the output.
Is there a similar way to format the output of the kubectl describe
command?
For example:
kubectl describe -o="jsonpath={...}" pods my-rc
would print a JSON format for the list of pods in my-rc
replication controller. But -o
is not accepted for the describe
command.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…