Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleshell command
kubectl get pod,svc -n kube-system

Yields

Let's break it down

  1. kubectl get pod or kubectl get pods will list all pods with their status by name 
  2. kubectl get pob, svc will list the service details of all pods, this includes service type, cluster IP, and port
  3. kubectl 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 command kubectl get namespaces