Add documentation for max-scale global setting (#2736)

* Add documentation for max-scale global setting

* Update docs/serving/autoscaling/scale-bounds.md

Co-authored-by: Markus Thömmes <markusthoemmes@me.com>

Co-authored-by: Markus Thömmes <markusthoemmes@me.com>
This commit is contained in:
arturenault 2020-08-10 12:30:30 -07:00 committed by GitHub
parent 60a67ca06c
commit a4e1991a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 1 deletions

View File

@ -48,7 +48,7 @@ spec:
This value controls the maximum number of replicas that each revision should have.
Knative will attempt to never have more than this number of replicas running, or in the process of being created, at any one point in time.
* **Global key:** n/a
* **Global key:** `max-scale`
* **Per-revision annotation key:** `autoscaling.knative.dev/maxScale`
* **Possible values:** integer
* **Default:** `0` which means unlimited
@ -71,6 +71,31 @@ spec:
containers:
- image: gcr.io/knative-samples/helloworld-go
```
{{< /tab >}}
{{% tab name="Global (ConfigMap)" %}}
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: config-autoscaler
namespace: knative-serving
data:
max-scale: "3"
```
{{< /tab >}}
{{% tab name="Global (Operator)" %}}
```yaml
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeServing
metadata:
name: knative-serving
spec:
config:
autoscaler:
max-scale: "3"
```
{{< /tab >}}
{{< /tabs >}}