-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobject-detection-rest-deployment.yaml
46 lines (46 loc) · 1.45 KB
/
object-detection-rest-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"object-detection-rest:latest","namespace":"user1-rhods-project"},"fieldPath":"spec.template.spec.containers[?(@.name==\"object-detection-rest\")].image","pause":"false"}]
labels:
app: object-detection-rest
app.kubernetes.io/component: object-detection-rest
app.kubernetes.io/instance: object-detection-rest
app.kubernetes.io/part-of: object-detection
name: object-detection-rest
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
deployment: object-detection-rest
strategy:
rollingUpdate:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
deployment: object-detection-rest
spec:
containers:
- env:
- name: USERNAME
value: user1
image: image-registry.openshift-image-registry.svc:5000/user1-rhods-project/object-detection-rest
imagePullPolicy: IfNotPresent
name: object-detection-rest
ports:
- containerPort: 8080
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30