We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17e45d8 commit 98a20fbCopy full SHA for 98a20fb
content/en/docs/reference/kubectl/cheatsheet.md
@@ -216,6 +216,10 @@ kubectl get nodes -o json | jq -c 'path(..)|[.[]|tostring]|join(".")'
216
217
# Produce a period-delimited tree of all keys returned for pods, etc
218
kubectl get pods -o json | jq -c 'path(..)|[.[]|tostring]|join(".")'
219
+
220
+# Produce ENV for all pods
221
+# Make sure to set your default namespace or this will run on system pods
222
+for pod in $(kubectl get po --output=jsonpath={.items..metadata.name}); do echo $pod && kubectl exec -it $pod env; done
223
```
224
225
## Updating resources
0 commit comments