bettwen jsonpath and template, there should be a equal sign
right
kubectl get pod mysql-0 -n coding -ojsonpath="{.metadata.name}"
or
kubectl get pod mysql-0 -n coding -o jsonpath="{.metadata.name}"
wrong
kubectl get pod mysql-0 -n coding -ojsonpath "{.metadata}"
will report
error: template format specified but no template given
Top comments (1)
So ,Did you solve this problems?