In the current example, single quotes are used, but the union operator can be confusing. Incorrect: `kubectl get pod -o=jsonpath='{.items[*]['metadata.name','spec.nodeName']}'` Correct: `kubectl get pods -o=jsonpath="{.items[*]['metadata.name', 'status.capacity']}"` |
||
---|---|---|
.. | ||
_index.md | ||
cheatsheet.md | ||
conventions.md | ||
docker-cli-to-kubectl.md | ||
jsonpath.md | ||
kubectl-cmds.md | ||
kubectl.md | ||
overview.md |