'Any simple bash script available to list the State of the Containers in a Kubernetes POD?

kubectl get pods lists the overall Running status of All the containers.

Is there any K8s inbuilt command to list the state of each/all the Containers along with the container name? Also is there any simple bash script written to get the state of the Containers for a particular POD?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source