Hacker News new | ask | show | jobs
by zegl 2220 days ago
Great post! If you're in the Kubernetes space for long enough, you'll see all of these configuration mistakes happening over and over again.

I've created a static code analyzer for Kubernetes objects, called kube-score, that can identify and prevent many of these issues. It checks for resource limits, probes, podAntiAffinities and much more.

1: https://github.com/zegl/kube-score

1 comments

Excellent tool. Can this analyse the result from kustomize files rather than actual k8s YAML?
Yes, kustomize is not supported natively, but you can achieve effect by piping the kustomize output to kube-score.

    kustomize build | kube-score score -
Thanks. One more question. For Visual Studio Code, Microsoft has a plugin called Kubernetes - which I currently use. Have you done a comparison against that?