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 :: Project structure for spring boot rest projects 
Shell :: How to install monaca font in Ubuntu 
Shell :: opera mini for ubuntu 18.04 
Shell :: Bash script to authenticate machine users 
Shell :: take files from different branch to different branch 
Shell :: change drive in linux terminal windows subsystem 
Shell :: how to download octave in ubuntu 
Shell :: pip install many packages 
Shell :: Bitbucket Cloud recently stopped supporting account passwords for Git authentication 
Shell :: sudo apt-get remove 
Shell :: shell scripting cheat sheet 
Shell :: gitignore still tracking files 
Shell :: pkg_resources.DistributionNotFound: 
Shell :: what is nano editor in linux 
Shell :: Command for turning on/off network in Centos 8 
Shell :: To get process ID 
Shell :: openssl PKCS vrom crt 
Shell :: get installed app icon android kotlin 
Shell :: linux iw delete interface 
Shell :: linux boot sequence step by step 
Shell :: kube cluster 
Shell :: delete fg linux 
Shell :: ros galactic source 
Shell :: curl command download from s3 
Shell :: check file ending/extension bash 
Shell :: fix EACCEC 
Shell :: Command to create a hardlink 
Shell :: Payload retrieve sam and system from a live file system 
Shell :: Git - graph all commits for repot in terminal and show commit messages one line 
Shell :: match all css media queries 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =