kubectl -ojsonpath
Roy
Posted on September 8, 2021
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
💖 💪 🙅 🚩
Roy
Posted on September 8, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
undefined Hai Robotics Achieved High Availability & Easy Operations in a Hybrid Cloud Architecture with JuiceFS
November 29, 2024
googlecloud Building a Kubernetes Client for Google Kubernetes Engine (GKE) in Python
November 25, 2024