Update cheatsheet.md (#18975)
* Update cheatsheet.md "List all pods in the namespace, with more details" command corrected by adding --all-namespaces * Update content/en/docs/reference/kubectl/cheatsheet.md Co-Authored-By: Tim Bannister <tim@scalefactory.com> Co-authored-by: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
parent
1e6d12b9e0
commit
9da040d5d0
|
|
@ -144,7 +144,7 @@ EOF
|
||||||
# Get commands with basic output
|
# Get commands with basic output
|
||||||
kubectl get services # List all services in the namespace
|
kubectl get services # List all services in the namespace
|
||||||
kubectl get pods --all-namespaces # List all pods in all namespaces
|
kubectl get pods --all-namespaces # List all pods in all namespaces
|
||||||
kubectl get pods -o wide # List all pods in the namespace, with more details
|
kubectl get pods -o wide # List all pods in the current namespace, with more details
|
||||||
kubectl get deployment my-dep # List a particular deployment
|
kubectl get deployment my-dep # List a particular deployment
|
||||||
kubectl get pods # List all pods in the namespace
|
kubectl get pods # List all pods in the namespace
|
||||||
kubectl get pod my-pod -o yaml # Get a pod's YAML
|
kubectl get pod my-pod -o yaml # Get a pod's YAML
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue