add sleep-py-concurrency yaml
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bbc35880df
commit
c04a2477d2
21
functions/scaling/sleep-py-concurrency.yml
Normal file
21
functions/scaling/sleep-py-concurrency.yml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: serving.knative.dev/v1alpha1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: sleep-py-sc
|
||||
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/sleep-python
|
Loading…
Reference in New Issue
Block a user