<p>I'm setting up a new server with kubernetes and because of storage limitations I need to change <strong>revisionHistoryLimit</strong> for all our existing and new projects to 2 or 3. I know I can change it in each deployment with <strong>spec.revisionHistoryLimit</strong> but I need to change it globally.</p>

<p>Thank you for answers and tips.</p>

Michael Dostál
<p>Possible cluster-wide policies are listed here,</p>

<p><a href="https://kubernetes.io/docs/concepts/policy/pod-security-policy/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/policy/pod-security-policy/</a></p>

<p>You can set pod-level security policies or you can limit resource-usage, both of which don't include the revisionHistoryLimit parameter. I am not aware of any other alternatives, so the answer to your question is you have to include the parameter in every deployment definition.</p>
