Skip to content

Instantly share code, notes, and snippets.

@arashkaffamanesh
Created July 20, 2019 09:05
Show Gist options
  • Save arashkaffamanesh/4d2e61b28ac940b52b686fdf0f704754 to your computer and use it in GitHub Desktop.
Save arashkaffamanesh/4d2e61b28ac940b52b686fdf0f704754 to your computer and use it in GitHub Desktop.
alias util='kubectl get nodes --no-headers | awk '\''{print $1}'\'' | xargs -I {} sh -c '\''echo {} ; kubectl describe node {} | grep Allocated -A 5 | grep -ve Event -ve Allocated -ve percent -ve -- ; echo '\'''
util
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment