Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Find all pods that status is NotReady sort jq cheatsheet

kubectl get nodes -o json |   jq -r '.items | sort_by(.status.capacity.memory)[]|[.metadata.name,.status.capacity.memory,.status.allocatable.memory] | @csv'
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #Find #pods #status #NotReady #sort #jq #cheatsheet
ADD COMMENT
Topic
Name
4+1 =