k8s列出出错的pods

Suspicious pods

早上看到一个k8s的排错小工具,还挺不错的,安装了尝试下

安装

1
2
3
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
cargo install suspicious-pods
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[rsync@albj-jenkins-slave-docker-01 scripts]$ suspicious-pods --help
suspicious-pods 0.5.2
Prints a list of k8s pods that might not be working correctly

USAGE:
suspicious-pods <namespace> --format <format>

FLAGS:
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
-f, --format <format> The output format. Valid values are: text, markdown [default: text]

ARGS:
<namespace> The namespace you want to scan [default: default]
Donate