2019-10-08 18:30:22 +02:00
|
|
|
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:
|
2019-10-18 23:10:48 +02:00
|
|
|
- image: tormachris/isprime-python
|
2019-10-09 21:35:36 +02:00
|
|
|
env:
|
|
|
|
- name: TARGET
|
|
|
|
value: "Py"
|