Search
 
SCRIPT & CODE EXAMPLE
 

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'
Comment

Find all pods that status is NotReady sort count jq cheatsheet

kubectl get pods -ojson -A | jq '.items | group_by(.spec.nodeName) | map({"nodeName": .[0].spec.nodeName, "count": length}) | sort_by(.count)'
Comment

PREVIOUS NEXT
Code Example
Shell :: how to automatically change wall paper in kubuntu 
Shell :: powershell remove remove startup text 
Shell :: why showing different +++++++++------ count git diff command 
Shell :: service logs realtime 
Shell :: graphic driver in ubuntu 
Shell :: compilation failed for package in r ubuntu 
Shell :: git create branches 
Shell :: bash shell scripting cheat sheet 
Shell :: bash if else regex 
Shell :: how to ssh linux 
Shell :: gatsby install 
Shell :: cmake install files 
Shell :: sed add a line after a match 
Shell :: install freepbx on ubuntu 18.04 
Shell :: 2&1 linux pipe stderr, stdin, stdout 
Shell :: bc command in linux 
Shell :: flutter Error when communicating with the Firebase Installations server API. HTTP response 
Shell :: macos run application from terminal to work on files parse files in open for mac apps specify file or folder for opening from the command line 
Shell :: linux terminal find the type of a file 
Shell :: gnome-desktop-item-edit install for kali 
Shell :: cht sht .vim (config opts) 
Shell :: linux show external drives 
Shell :: ros galactic build from source 
Shell :: how to delete default.save nginx 
Shell :: how do I delete existing mobile broadband connections in Linux Ubuntu 
Shell :: expo install safe area provider 
Shell :: command to convert standard input to arguments for a piped command 
Shell :: Payload ftp download upload 
Shell :: install ltrace with yum 
Shell :: unit has a bad unit file setting 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =