DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Roy
Roy

Posted on

kubectl -ojsonpath

bettwen jsonpath and template, there should be a equal sign
right

kubectl get pod mysql-0 -n coding -ojsonpath="{.metadata.name}"
Enter fullscreen mode Exit fullscreen mode

or

kubectl get pod mysql-0 -n coding -o jsonpath="{.metadata.name}"
Enter fullscreen mode Exit fullscreen mode

wrong

kubectl get pod mysql-0 -n coding -ojsonpath "{.metadata}"
Enter fullscreen mode Exit fullscreen mode

will report

error: template format specified but no template given

Top comments (1)

Collapse
 
weksup profile image
Weksup

So ,Did you solve this problems?

An Animated Guide to Node.js Event Loop

>> Check out this classic DEV post <<