cloud-native-toolkit / planning

The is the planning repo to manage the cross project Epics and Issues. Tasks and Bugs
3 stars 1 forks source link

Carlos wants to lint application k8s yaml files with kube-linter when packaging the application for deployment (ie helm chart) #674

Open csantanapr opened 3 years ago

csantanapr commented 3 years ago

A tool to lint kube yamls is https://github.com/stackrox/kube-linter

What is KubeLinter? KubeLinter analyzes Kubernetes YAML files and Helm charts, and checks them against a variety of best practices, with a focus on production readiness and security.

csantanapr commented 3 years ago

Thanks to Benjamin Orazem for making me aware of kubeval

Adding Kubeval

Ah cool it looks like kubeval should be run first to check the syntax and schema problems, and then kube-linter on security and best practices So it can be a single Tekton Task with 2 steps

https://github.com/sabre1041/k8s-manifest-validation#key-tools https://github.com/instrumenta/kubeval