How to view pods in all namespaces in k8s?
To view Pods in all namespaces in a detailed manner, you can use the following command:
kubectl get pods --all-namespaces -o wide
This command will return a table containing detailed information about Pods in all namespaces. Each row displays a Pod, including its name, namespace, status, IP address, node, start time, and more.
Alternatively, if you only want to view Pods in a specific namespace, you can replace `–all-namespaces` with the specified namespace name, for example:
kubectl get pods -n <namespace>
`
Whether you use `–all-namespaces` or `-n