$ kubectl get po -o json | jq -r '.items[] | ([.spec.nodeName, ": ", .metadata.name] | join(""))' | sort
node-foo: pod-foo
node-foo: pod-bar
node-bar: pod-baz
Created
December 19, 2017 12:43
-
-
Save joar/9960aa7c4045fe47d57c807ae7912d6c to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment