Cost Management

Policies for controlling Kubernetes resource costs. Enforce resource requests and limits, restrict expensive instance types, prevent runaway scaling, and block unnecessary services.

Kyverno policies for controlling cloud and Kubernetes infrastructure costs.

What’s Covered

  • Resource quotas — Require CPU and memory requests/limits on all workloads
  • Instance type restrictions — Block expensive GPU or high-memory node selectors
  • HPA guardrails — Cap maximum replica counts to prevent runaway scaling
  • Service restrictions — Disallow LoadBalancer services without approval
  • Namespace budgets — Enforce LimitRange and ResourceQuota on namespaces

All cost management policies are available in the Nirmata policy library on GitHub.