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