get it a container in a pod code example Example: get containers in pod kubectl get pods POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}'