<p>I am attempting to enforce a limit on the number of pods per deployment within a namespace / cluster from a single configuration point. I have two non-production environments, and I want to deploy fewer replicas on these as they do not need the redundancy.</p>

<p>I've read <a href="https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/" rel="nofollow noreferrer">this</a> but I'm unable to find out how to do it on the deployment level. Is it possible to enforce this globally without going into each one of them?</p>

Alexander
<p>Since the replicas is a fixed value on a deployment YAML file, you may better to use <a href="https://helm.sh/" rel="nofollow noreferrer">helm</a> to make a template for adding some flexibility in your application.</p>
