Difference between revisions of "List containers on a POD"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
[[kubectl get --no-headers]] pods -o [[custom-columns]]=":metadata.name" | [[kubectl get --no-headers]] pods -o [[custom-columns]]=":metadata.name" | ||
[[kubectl get ns]] | [[kubectl get ns]] | ||
+ | [[while read line]] | ||
== See also == | == See also == |
Revision as of 14:09, 28 September 2023
kubectl get pods YourPOD -o jsonpath='{.spec.containers[*].name}'
kubectl get pods -A kubectl get pods -A -o=name kubectl get --no-headers pods -o custom-columns=":metadata.name" kubectl get ns while read line
See also
Advertising: