Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kubernetes get deployments

# Get pods in default namespace
kubectl get deployments

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

#Get Pods in all namespaces
kubectl get deployments --all-namespaces
Source by kubernetes.io #
 
PREVIOUS NEXT
Tagged: #kubernetes #deployments
ADD COMMENT
Topic
Name
9+8 =