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 | + | [[kubectl get --no-headers]] pods -o custom-columns=":metadata.name" |
[[kubectl get ns]] | [[kubectl get ns]] | ||
Revision as of 13:54, 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
See also
Advertising: