zegl / kube-score

Kubernetes object analysis with recommendations for improved reliability and security. kube-score actively prevents downtime and bugs in your Kubernetes YAML and Charts. Static code analysis for Kubernetes.
https://kube-score.com
MIT License
2.67k stars 175 forks source link

Can we set rules to ignore init-Container #533

Open jayantapaul-18 opened 1 year ago

jayantapaul-18 commented 1 year ago

I'm using init-containers with main containers and kube-score is throwing [CRITICAL] Container Resources alert . So, looking for a way to either fixed the warning or, way to ignored those warning just for init-containers .

zegl commented 1 year ago

Hey. I think that the best way to "fix the error" in this case might be to specify the resource requirements of the init containers.

If not, please let me know why that's not a good solution for you.

jayantapaul-18 commented 1 year ago

Hey, thanks for quick response and recommendation . Let me try the resources cpu & memory for init-container and see if that resolve the alert or not.