-
Notifications
You must be signed in to change notification settings - Fork 1
/
openshift.yaml
97 lines (97 loc) · 2 KB
/
openshift.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "s2i-example-tensorflow"
labels:
app: "s2i-example-tensorflow"
spec:
successfulBuildsHistoryLimit: 4
failedBuildsHistoryLimit: 2
resources:
requests:
cpu: 1
memory: 1Gi
limits:
cpu: 1
memory: 1Gi
output:
to:
kind: ImageStreamTag
name: "s2i-example-tensorflow:latest"
source:
type: Git
git:
uri: "https://github.com/fridex/thoth-s2i-demo"
ref: "master"
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
name: "python-36:latest"
env:
---
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
labels:
app: "s2i-example-tensorflow"
name: "s2i-example-tensorflow"
spec:
replicas: 1
selector:
service: "s2i-example-thoth"
template:
metadata:
labels:
service: "s2i-example-thoth"
spec:
containers:
- name: "s2i-example-tensorflow"
restartPolicy: Never
ports:
- containerPort: 8080
protocol: TCP
resources:
requests:
memory: "1Gi"
cpu: "1"
limits:
memory: "1Gi"
cpu: "1"
test: false
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- "s2i-example-tensorflow"
from:
kind: ImageStreamTag
name: "s2i-example-tensorflow:latest"
---
apiVersion: "image.openshift.io/v1"
kind: ImageStream
metadata:
labels:
app: "s2i-example-tensorflow"
name: "s2i-example-tensorflow"
spec:
name: "s2i-example-tensorflow"
---
apiVersion: "image.openshift.io/v1"
kind: ImageStream
metadata:
labels:
app: "s2i-example-tensorflow"
name: "python-36"
spec:
tags:
- name: "latest"
from:
kind: "DockerImage"
name: "registry.access.redhat.com/ubi8/python-36"
referencePolicy:
type: "Source"