Abdullah Şamil Güser

Namespaces

Namespace definition

kubectl - Namespace Cheat Sheet

kubectl get namespace                                             # List all namespaces
kubectl get ns                                                    # Shortcut
kubectl config set-context --current --namespace=[namespaceName]  # Set the current context to use a namespace
kubectl create ns [namespaceName]                                 # Create a namespace
kubectl delete ns [namespaceName]                                 # Delete a namespace
kubectl get pods --all-namespaces                                 # List all pods in all namespaces
kubectl get pods -n [namespaceName]                               # List all pods in a namespace