mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
..
This commit is contained in:
parent
e261f73e11
commit
792e5dc2ed
2 changed files with 26 additions and 0 deletions
8
.zshrc.d/kutil.zsh
Normal file
8
.zshrc.d/kutil.zsh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
kutil () {
|
||||
for host in $(kubectl get nodes --no-headers | cut -d' ' -f1)
|
||||
do
|
||||
echo "$host - $(kubectl get nodes -o jsonpath='{.metadata.labels.topology\.kubernetes\.io/zone}' $host)"
|
||||
kubectl describe node "$host" | grep --color Allocated -A 5 | grep --color -ve Event -ve Allocated -ve percent -ve --
|
||||
echo
|
||||
done
|
||||
}
|
||||
Loading…
Reference in a new issue