What is the difference between autoscaling.knative.dev/minScale and autoscaling.knative.dev/min-scale
search cancel

What is the difference between autoscaling.knative.dev/minScale and autoscaling.knative.dev/min-scale

book

Article ID: 297888

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

What is the difference between autoscaling.knative.dev/minScale in TAP doc and autoscaling.knative.dev/min-scale in knative doc.
 

TAP doc: https://docs.vmware.com/en/VMware-Tanzu-Application-Platform/1.3/tap/GUID-app-live-view-configuring-apps-scaling-applications.html

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


Environment

Product Version: 1.3

Resolution

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