knative-report/functions/scaling/hello-world-go-concurrency.yml

25 lines
760 B
YAML
Raw Normal View History

2019-10-08 18:30:22 +02:00
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
2019-10-29 11:16:37 +01:00
name: helloworld-go-sc-cc
2019-10-08 18:30:22 +02:00
namespace: default
spec:
template:
2019-10-20 23:49:19 +02:00
metadata:
2019-10-08 18:30:22 +02:00
annotations:
# Knative concurrency-based autoscaling (default).
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: concurrency
# Target 10 requests in-flight per pod.
autoscaling.knative.dev/target: "10"
# Disable scale to zero with a minScale of 1.
autoscaling.knative.dev/minScale: "1"
# Limit scaling to 100 pods.
autoscaling.knative.dev/maxScale: "100"
spec:
containers:
2019-10-29 11:16:37 +01:00
- image: tormachris/hello-world-go
2019-10-09 21:35:36 +02:00
env:
- name: TARGET
value: "Go"