Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Find all pods that status is NotReady jq cheatsheet

kubectl -n test-ns get pods -ojson | jq '.items[] | select(.status.containerStatuses[].ready==false) | .metadata.name'
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #Find #pods #status #NotReady #jq #cheatsheet
ADD COMMENT
Topic
Name
2+2 =