This used to work just fine in the past using the original kube downscaler. Somehow the latest version does not work anymore because it expects a autoscaling.keda.sh/paused-replicas key.
Problem to solve
│ 2024-08-21 14:36:44,549 ERROR: Failed to process ScaledObject wp-bedrock-sample/wp-bedrock-sample-wordpress-bedrock: 'autoscaling.keda.sh/paused-replicas' │
│ Traceback (most recent call last): │
│ File "/kube_downscaler/scaler.py", line 940, in autoscale_resource │
│ scale_down( │
│ File "/kube_downscaler/scaler.py", line 651, in scale_down │
│ if resource.annotations[ScaledObject.keda_pause_annotation] is not None: │
│ KeyError: 'autoscaling.keda.sh/paused-replicas'
Further details
Proposal
Assume that autoscaling.keda.sh/paused-replicas is 0 if it is not present.
Issue
We use the downscaler to downscale all of our dev pods in the nights. Therefore the deployments and the scaledobjects have annotations look like these
This used to work just fine in the past using the original kube downscaler. Somehow the latest version does not work anymore because it expects a autoscaling.keda.sh/paused-replicas key.
Problem to solve
Further details
Proposal
Assume that autoscaling.keda.sh/paused-replicas is 0 if it is not present.
Who can address the issue
Other links/references