<p>Is there a 'master switch' to enable/disable Keda and HPA?
I can enable/disable scaling rules by editing the replicacount to 0, but is there a main enalbe/disable field?</p>
<pre><code>  cooldownPeriod: 1800
  maxReplicaCount: 8
  minReplicaCount: 2
  pollingInterval: 300
</code></pre>

<p>You can enable/disable scaling rules either by editing the replica count to 0 or you can use a single field called <strong>Pause autoscaling</strong>.</p>
<p><strong>Pause autoscaling</strong> lets you enable/disable autoscaling by using <strong>autoscaling.keda.sh/paused-replicas</strong> annotation. It can be useful to instruct KEDA to pause autoscaling of objects, if you want to do cluster maintenance or you want to avoid resource starvation by removing non-mission-critical workloads.</p>
<p>You can enable this by adding the below annotation to your <code>ScaledObject</code> definition:</p>
<pre><code>metadata:
  annotations:
    autoscaling.keda.sh/paused-replicas: &quot;0&quot;
</code></pre>
<p>The presence of this annotation will pause autoscaling no matter what number of replicas is provided. The above annotation will scale your current workload to 0 replicas and pause autoscaling. You can set the value of replicas for an object to be paused at any arbitrary number. To enable autoscaling again, simply remove the annotation from the <code>ScaledObject</code> definition.</p>
<p>Refer to the <a href="https://keda.sh/docs/2.7/concepts/scaling-deployments/" rel="nofollow noreferrer">KEDA documentation</a> for more information.</p>
