4 ms·
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 sta
by zegl 6y 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 https://github.com/zegl/kube-score
- kakakiki 6y agoExcellent tool. Can this analyse the result from kustomize files rather than actual k8s YAML?
- zegl 6y agoYes, kustomize is not supported natively, but you can achieve effect by piping the kustomize output to kube-score. kustomize build | kube-score score -
- kakakiki 6y agoThanks. One more question. For Visual Studio Code, Microsoft has a plugin called Kubernetes - which I currently use. Have you done a comparison against that?