I have problems finding the values used for selecting or displaying objects in kubernetes. I feel like I'm not using the kubernetes docs correctly or these are linked with a command I haven't learned yet.
Examples:
Find all the pods on a certain node? How do you know it's in spec.nodeName
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>Get all Pods in a running state? How do you know this value is stored in status.phase
kubectl get pods --field-selector status.phase=RunningGet all pods but only listing the name, How do you know it called metadata.name
kubectl get pods -o custom-columns:POD:metadata.name