Update scale bounds with global min-scale (#4915)

This commit is contained in:
Norman Böwing 2022-04-08 15:23:45 +02:00 committed by GitHub
parent d52ede895d
commit 736e9b2f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 1 deletions

View File

@ -10,7 +10,7 @@ This can be a default configuration for all Revisions, or for a specific Revisio
This value controls the minimum number of replicas that each Revision should have.
Knative will attempt to never have less than this number of replicas at any one point in time.
* **Global key:** n/a
* **Global key:** `min-scale`
* **Per-revision annotation key:** `autoscaling.knative.dev/min-scale`
* **Possible values:** integer
* **Default:** `0` if scale-to-zero is enabled and class KPA is used, `1` otherwise
@ -37,6 +37,30 @@ Knative will attempt to never have less than this number of replicas at any one
- image: gcr.io/knative-samples/helloworld-go
```
=== "Global (ConfigMap)"
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: config-autoscaler
namespace: knative-serving
data:
min-scale: "3"
```
=== "Global (Operator)"
```yaml
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeServing
metadata:
name: knative-serving
spec:
config:
autoscaler:
min-scale: "3"
```