25 lines
764 B
YAML
25 lines
764 B
YAML
apiVersion: serving.knative.dev/v1alpha1
|
|
kind: Service
|
|
metadata:
|
|
name: helloworld-py-sc-cc
|
|
namespace: default
|
|
spec:
|
|
template:
|
|
metadata:
|
|
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:
|
|
- image: tormachris/hello-world-python
|
|
env:
|
|
- name: TARGET
|
|
value: "Py"
|