kubectl pods listing across namespaces¶
To list pods operating across all namespaces within a Kubernetes cluster, the --all-namespaces flag (shorthand -A) is used with the get pods command.^[400-devops__06-Kubernetes__k8s-learning__07.pv-pvc__README.md]
Command syntax¶
The command to retrieve Pod information from every namespace is:^[400-devops__06-Kubernetes__k8s-learning__07.pv-pvc__README.md]
[kubectl get pods](<./kubectl-get-pods.md>) -A -owide
Output details¶
This command utilizes the -o wide output format, which provides additional details beyond the default listing, such as the node where the Pod is running and the Pod's IP address.^[400-devops__06-Kubernetes__k8s-learning__07.pv-pvc__README.md]
Sources¶
^[400-devops__06-Kubernetes__k8s-learning__07.pv-pvc__README.md]