Skip to content

Commit

Permalink
Add documentation for max-scale global setting (#2736)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
arturenault and markusthoemmes authored Aug 10, 2020
1 parent 60a67ca commit a4e1991
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion docs/serving/autoscaling/scale-bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 >}}

Expand Down

0 comments on commit a4e1991

Please sign in to comment.