How To Force Kubernetes Namespaces To Have ResourceQuotas Using OPA

Mohamed Ahmed
7 min readJun 30, 2020

This article was originally published at: https://www.magalix.com/blog/how-to-force-kubernetes-namespaces-to-have-resourcequotas-defined-using-opa

The Problem With Not Setting Container Requests And Limits

In Kubernetes clusters, effective resource utilization should not be taken lightly. Even in the smallest environments, you need to ensure that:

  1. You are consuming the maximum capacity of the nodes (no underutilization).

--

--

Mohamed Ahmed

Magalix Co-Founder, dad, and learner @MohamedFAhmed