mirror of https://github.com/knative/docs.git
Update scale bounds with global min-scale (#4915)
This commit is contained in:
parent
d52ede895d
commit
736e9b2f67
|
@ -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"
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue