Skip to content

Commit e648c2b

Browse files
Fix location of /target annotation.
1 parent 0499690 commit e648c2b

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

03-scaling/knative/service-10.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ apiVersion: serving.knative.dev/v1alpha1
22
kind: Service
33
metadata:
44
name: greeter
5-
annotations:
6-
# Target 10 in-flight-requests per pod.
7-
autoscaling.knative.dev/target: "10"
85
spec:
96
runLatest:
107
configuration:
118
revisionTemplate:
9+
metadata:
10+
annotations:
11+
# Target 10 in-flight-requests per pod.
12+
autoscaling.knative.dev/target: "10"
1213
spec:
1314
container:
1415
image: dev.local/rhdevelopers/greeter:0.0.1

documentation/modules/ROOT/pages/03scaling.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,13 @@ apiVersion: serving.knative.dev/v1alpha1
283283
kind: Service
284284
metadata:
285285
name: greeter
286-
annotations:
287-
autoscaling.knative.dev/target: "10" #<1>
288286
spec:
289287
runLatest:
290288
configuration:
291289
revisionTemplate:
290+
metadata:
291+
annotations:
292+
autoscaling.knative.dev/target: "10" #<1>
292293
spec:
293294
container:
294295
image: dev.local/rhdevelopers/greeter:0.0.1

0 commit comments

Comments
 (0)