-
Notifications
You must be signed in to change notification settings - Fork 9
/
image-processor-kn-svc.yaml
48 lines (48 loc) · 1.44 KB
/
image-processor-kn-svc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: v1
kind: ConfigMap
metadata:
name: image-processor-conf
data:
INFER_URL: "https://manu-manu-vi.apps.cluster-69ncl.69ncl.sandbox392.opentlc.com/v2/models/manu/infer"
---
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: image-processor
labels:
app: visual-inspection
app.kubernetes.io/part-of: visual-inspection
app.openshift.io/runtime: python
spec:
template:
metadata:
annotations:
autoscaling.knative.dev/minScale: "1"
# autoscaling.knative.dev/target: '100'
# autoscaling.knative.dev/targetUtilizationPercentage: '70'
# autoscaling.knative.dev/window: 60s
labels:
app.kubernetes.io/component: image-processor
app.kubernetes.io/instance: image-processor
app.kubernetes.io/part-of: strimzi-manu-vi
app.openshift.io/runtime: python
app.openshift.io/runtime-namespace: manuela-visual-inspection
app.openshift.io/runtime-version: latest
spec:
containerConcurrency: 0
containers:
- name: image-processor
image: quay.io/manuela/image-processor:1.0.0
# image: image-processor:cpu
imagePullPolicy: Always
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: image-processor-conf
resources: {}
enableServiceLinks: false
timeoutSeconds: 30
traffic:
- latestRevision: true
percent: 100