19 lines
450 B
YAML
19 lines
450 B
YAML
apiVersion: serving.knative.dev/v1alpha1
|
|
kind: Service
|
|
metadata:
|
|
name: isprime-go-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-go
|
|
env:
|
|
- name: TARGET
|
|
value: "107107"
|