Skip to content

A bunch of bash commands and scripts for kubectl operations

Notifications You must be signed in to change notification settings

mfund0/kubectl.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

kubectl.sh

A bunch of bash commands and scripts for kubectl operations

Top pods for a node

pods=$(kubectl --context <context> get po -o wide --all-namespaces --field-selector spec.nodeName=<node_name> --no-headers| awk {'print $2,"--namespace "$1'})
echo $pods | while IFS= read -r line ; do kubectl --context <context> top pod $(echo $line) --no-headers; done

About

A bunch of bash commands and scripts for kubectl operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published