Kubectl commands to list services, deployments and pods from namespace

1 · Adrian Matei · June 24, 2021, 10 p.m.
To list services, pods and deployments resources from kubernetes namespace use the kubectl get command with --namespace=my-namespace (short -n) # Set the "current" namespace for context kubectl config set-context --current --namespace=my-namespace # Get commands with basic output kubectl get services # List all services in the namespace kubectl get pods --all-namespaces # List all pods in all namespaces kubectl get pods -o wide # List a...