Bug 1877372

Summary: Add command to list all the pods in a node independently of its status
Product: OpenShift Container Platform Reporter: Oscar Casal Sanchez <ocasalsa>
Component: DocumentationAssignee: Steven Smith <stevsmit>
Status: CLOSED CURRENTRELEASE QA Contact: Weinan Liu <weinliu>
Severity: unspecified Docs Contact: Vikram Goyal <vigoyal>
Priority: unspecified    
Version: 4.5CC: aos-bugs, jokerman, kalexand
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-26 15:36:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oscar Casal Sanchez 2020-09-09 13:28:39 UTC
[Document URL]
https://docs.openshift.com/container-platform/4.5/nodes/nodes/nodes-nodes-viewing.html#nodes-nodes-viewing-listing-pods_nodes-nodes-viewing 


[Section Number and Name]
Listing pods on a node in your cluster
 

[Describe the issue]
Add in this section the command below to list all the pods, since the `oc describe nodes` only shows the Non-terminated pods. 

[Suggestions for improvement]

To list all the pods (not only the `Non-terminated pods` from a node:

$ oc get pod --all-namespaces --field-selector=spec.nodeName=<nodename>

Comment 1 Steven Smith 2021-03-23 17:57:05 UTC
PR at https://github.com/openshift/openshift-docs/pull/30806. I included the command `$ oc get pod --all-namespaces --field-selector=spec.nodeName=<nodename>` as a note at the end of the section. Happy to change it if necessary. 

Thank you.

Comment 2 Weinan Liu 2021-03-25 07:12:52 UTC
/lgtm

Comment 3 Steven Smith 2021-03-26 15:36:15 UTC
This issue has been approved and merged by our peer review team and I am now closing it.