4 ms·
This is a pretty bad example since kubectl can output JSON and using something like `jq` would have made it even simpler.
by ecnahc515 6y ago
This is a pretty bad example since kubectl can output JSON and using something like `jq` would have made it even simpler.
- majewsky 6y agoBetter yet, kubectl can take a jsonpath expression to select from the JSON. For example, to just get a name: kubectl get something -o jsonpath='{.items[*].metadata.name}'