Skip to content

Commit

Permalink
The max-scale annotation, which is deprecated, has been moved to maxS…
Browse files Browse the repository at this point in the history
…cale.

Signed-off-by: kahirokunn <[email protected]>
  • Loading branch information
kahirokunn committed Mar 9, 2024
1 parent 7e7471f commit bad2c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/serving/autoscaling/autoscale-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ autoscaler classes built into Knative:
# Target 10 requests in-flight per pod.
autoscaling.knative.dev/target: "10"
# Disable scale to zero with a min scale of 1.
autoscaling.knative.dev/min-scale: "1"
autoscaling.knative.dev/minScale: "1"
# Limit scaling to 100 pods.
autoscaling.knative.dev/max-scale: "100"
autoscaling.knative.dev/maxScale: "100"
spec:
containers:
- image: ghcr.io/knative/autoscale-go:latest
Expand Down
4 changes: 2 additions & 2 deletions docs/serving/autoscaling/scale-bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ If the `max-scale-limit` global key is set, Knative ensures that neither the glo
When `max-scale-limit` is set to a positive value, a revision with a max scale above that value (including 0, which means unlimited) is disallowed.

* **Global key:** `max-scale`
* **Per-revision annotation key:** `autoscaling.knative.dev/max-scale`
* **Per-revision annotation key:** `autoscaling.knative.dev/maxScale`
* **Possible values:** integer
* **Default:** `0` which means unlimited

Expand All @@ -90,7 +90,7 @@ When `max-scale-limit` is set to a positive value, a revision with a max scale a
template:
metadata:
annotations:
autoscaling.knative.dev/max-scale: "3"
autoscaling.knative.dev/maxScale: "3"
spec:
containers:
- image: ghcr.io/knative/helloworld-go:latest
Expand Down

0 comments on commit bad2c62

Please sign in to comment.