Skip to content

Instantly share code, notes, and snippets.

@dleske
Created February 22, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dleske/3ffffd5d2926e3b0b12316538bb097f4 to your computer and use it in GitHub Desktop.
Save dleske/3ffffd5d2926e3b0b12316538bb097f4 to your computer and use it in GitHub Desktop.
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