Kube linter

Kube linter is a static analysis tool

Installing using golang

GO111MODULE=on go get golang.stackrox.io/kube-linter/cmd/kube-linter

Or use 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

Using lint

kube-linter lint test.yaml
Send a Message