Q:

kubernetes get services

# Get pods in default namespace
kubectl get services

#Get Pods in my-namespace
kubectl get services -n my-namespace

#Get Pods in all namespaces
kubectl get services --all-namespaces
0
# Get pods in default namespace
kubectl get pods

#Get Pods in my-namespace
kubectl get pods -n my-namespace

#Get Pods in all namespaces
kubectl get pods --all-namespaces
-1
kubectl describe <type> <name> -o yaml
0

New to Communities?

Join the community