Devendra Barhate:
I was trying to test jsonpath
and custom-columns
with kubectl. It appears that I am missing something while using custom-columns
to get container names, while jsonpath
works. e.g.
jsonpath
kubectl get pod -n monitoring prometheus-stack-grafana-78b6c6f796-f7jkp -o jsonpath='{.spec.containers[*].name}'
grafana-sc-dashboard grafana-sc-datasources grafana
custom-columns
kubectl get pod -n monitoring prometheus-stack-grafana-78b6c6f796-f7jkp -o custom-columns=NAME:.spec.containers[*].name
zsh: no matches found: custom-columns=NAME:.spec.containers[*].name
What am I missing here with custom-columns
?