Skip to content

Instantly share code, notes, and snippets.

@dleske
Created February 22, 2018 19:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Kubernetes Cheat Sheet

Kubernetes Cheat Sheet

kubectl

get OS information about all nodes

Or use as a pattern for other queries. Replace the OS image JSON path with whatever you want.

$ kubectl get nodes -o custom-columns='NAME:.metadata.name,OS:.status.nodeInfo.osImage'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment