Question
List all the pods running in ALL namespaces in following format and save the file to /tmp/all-pods.txt:
POD_NAME NAMESPACE NODE_NAME
Answerkubectl get pods -A -o=custom-columns=POD_NAME:.metadata.name,NAMESPACE:.metadata.namespace,NODE_NAME:.spec.nodeName > /tmp/all-pods.txt