-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobject-detection-app-git-deployment.yaml
55 lines (55 loc) · 1.92 KB
/
object-detection-app-git-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
47
48
49
50
51
52
53
54
55
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
alpha.image.policy.openshift.io/resolve-names: '*'
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"object-detection-app-git:latest","namespace":"user1-rhods-project"},"fieldPath":"spec.template.spec.containers[?(@.name==\"object-detection-app-git\")].image","pause":"false"}]
app.openshift.io/route-disabled: "false"
app.openshift.io/vcs-ref: ""
app.openshift.io/vcs-uri: https://github.com/rh-aiservices-bu/object-detection-app.git
labels:
app: object-detection-app-git
app.kubernetes.io/component: object-detection-app-git
app.kubernetes.io/instance: object-detection-app-git
app.kubernetes.io/name: object-detection-app-git
app.kubernetes.io/part-of: object-detection
app.openshift.io/runtime: nodejs
app.openshift.io/runtime-version: 16-ubi8
name: object-detection-app-git
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: object-detection-app-git
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: object-detection-app-git
deploymentconfig: object-detection-app-git
spec:
containers:
- env:
- name: OBJECT_DETECTION_URL
value: http://object-detection-rest:8080/predictions
- name: USERNAME
value: user1
image: image-registry.openshift-image-registry.svc:5000/user1-rhods-project/object-detection-app-git
imagePullPolicy: Always
name: object-detection-app-git
ports:
- containerPort: 8080
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30