Overview#

One thing to note is if you manage multiple name spaces. You’ll want to use the -n or --namespace with the namespace name to see those resources. Otherwise you will look in the default namespace for these resources. Which understanding what’s in your default namespace is important.

Get Pods#

kubectl -n lab get pods
kubectl get pods

Get Deployments#

kubectl -n lab get configmaps
kubectl get configmaps

Get ConfigMaps#

kubectl -n lab get configmaps
kubectl get configmaps