Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 608 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 608 Bytes

Knightly Zero-Scaler

A Kubernetes cron job that executes every night.

The script will look for all namespaces with this label:

metadata:
  labels:
    knightly.example.com/enabled: true

then, it will pause all KEDA ScaledObjects by adding pause-replicas annotation:

metadata:
  annotations:
    autoscaling.keda.sh/paused-replicas: "0"

And will finish with scaling all deployments in that namespace to 0.

More information about autoscaling.keda.sh/paused-replicas annotation can be found here.