mirror of https://github.com/knative/docs.git
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:
parent
60a67ca06c
commit
a4e1991a05
|
@ -48,7 +48,7 @@ spec:
|
||||||
This value controls the maximum number of replicas that each revision should have.
|
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.
|
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`
|
* **Per-revision annotation key:** `autoscaling.knative.dev/maxScale`
|
||||||
* **Possible values:** integer
|
* **Possible values:** integer
|
||||||
* **Default:** `0` which means unlimited
|
* **Default:** `0` which means unlimited
|
||||||
|
@ -71,6 +71,31 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/knative-samples/helloworld-go
|
- 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 >}}
|
{{< /tab >}}
|
||||||
{{< /tabs >}}
|
{{< /tabs >}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue