Kube linter 是一款静态分析工具
使用golang安装
GO111MODULE=on go get golang.stackrox.io/kube-linter/cmd/kube-linter
或者使用 linux-brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/lizhe/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install kube-linter
使用lint
kube-linter lint test.yaml