Preview:
# List all pods in plain-text output format.

kubectl get pods



# List all pods in plain-text output format and include additional information (such as node name).

kubectl get pods -o wide



# List the replication controller with the specified name in plain-text output format. Tip: You can shorten and replace the 'replicationcontroller' resource type with the alias 'rc'.

kubectl get replicationcontroller <rc-name>



# List all replication controllers and services together in plain-text output format.

kubectl get rc,services



# List all daemon sets in plain-text output format.

kubectl get ds



# List all pods running on node server01

kubectl get pods --field-selector=spec.nodeName=server01
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter