...
Code Block | ||||
---|---|---|---|---|
| ||||
kubectl get pod,svc -n kube-system |
Yields
Let's break it down
kubectl get pod
orkubectl get pods
will list all pods with their status by namekubectl get pob, svc
will list the service details of all pods, this includes service type, cluster IP, and portkubectl get pod, svc -n kube-system
will list the details of pods within a particular namespace. To see what namespaces are available you can use the dashboard (look under Clusters and select Namespaces), use the commandkubectl get namespaces