serving icon indicating copy to clipboard operation
serving copied to clipboard

Question about autoscaling target

Open StefT2800 opened this issue 1 month ago • 1 comments

Hello everyone. I was wondering if there is a way to tell Knative to apply scaling decisions on a custom resource field instead of the usual Deployment/ReplicaSet "replicas" field.

I built a Custom Controller that creates Pods monitoring these Custom Resources instead of Deployments. I wanted to know if there is a way to insert my Controller in the usual Knative pipeline.

The idea is that the Knative Autoscaler would change the "replicas" field in my resources, thus triggering my Controller.

StefT2800 avatar Nov 09 '25 21:11 StefT2800

Hey @StefT2800 right now no. But at some point our autoscaler could switch to using the /scale subresource. (ref: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#scale-subresource)

I can't say for certain that's the only hard link - I would have to confirm

dprotaso avatar Nov 18 '25 17:11 dprotaso