knative-report/functions/scaling/isprime-py.yml

19 lines
448 B
YAML

apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: isprime-py-sc
namespace: default
spec:
template:
metadata:
annotations:
# Knative cpu-based autoscaling.
autoscaling.knative.dev/class: kpa.autoscaling.knative.dev
autoscaling.knative.dev/metric: cpu
spec:
containers:
- image: tormachris/isprime-python
env:
- name: TARGET
value: "Py"