The following YAML is an example Workload that adds the annotation autoscaling.knative.dev/minScale = "1" to set the minimum scale for the spring-petclinic app:
knative doc: https://knative.dev/docs/serving/autoscaling/scale-bounds/#lower-bound
Per-revision annotation key: autoscaling.knative.dev/min-scale
Both autoscaling.knative.dev/minScale and autoscaling.knative.dev/min-scale are supported in the latest knative version by the sourcecode below:
https://github.com/knative/serving/blob/main/pkg/apis/autoscaling/register.go
Note: minScale works on all Knative versions while min-scale won't work on Knative 1.0