-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknative_service.yaml
32 lines (32 loc) · 1.04 KB
/
knative_service.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: SampleGrpcService
spec:
template:
metadata:
name: SampleGrpcService_1
annotations:
# Target 10 in-flight-requests per pod.
#autoscaling.knative.dev/target: "1"
# container-concurrency-target-percentage: "80"
autoscaling.knative.dev/targetUtilizationPercentage: "100"
#autoscaling.knative.dev/metric: "concurrency"
# autoscaling.knative.dev/initialScale: "0"
autoscaling.knative.dev/minScale: "0"
autoscaling.knative.dev/maxScale: "100"
autoscaling.knative.dev/scaleDownDelay: "2m"
spec:
containerConcurrency: 1
containers:
- name: SampleGrpcService_container
image: SampleGrpcService:latest
imagePullPolicy: Always
ports:
- name: h2c
containerPort: 40056
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name