forked from Apicurio/apicurito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openshift.yml
134 lines (128 loc) · 2.77 KB
/
openshift.yml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
apiVersion: v1
kind: List
items:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: apicurito-ui
labels:
app: apicurito
spec:
tags:
- from:
kind: DockerImage
name: apicurito/apicurito-ui:latest
importPolicy:
scheduled: true
name: "latest"
- apiVersion: v1
kind: ConfigMap
metadata:
name: apicurito-ui-config
labels:
app: apicurito
data:
config.js: |
var ApicuritoConfig = {
"generators": [
]
}
- apiVersion: v1
kind: Service
metadata:
name: apicurito-ui
labels:
app: apicurito
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: apicurito
component: apicurito-ui
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: apicurito
annotations:
console.alpha.openshift.io/overview-app-route: "true"
name: apicurito
spec:
tls:
termination: edge
to:
kind: Service
name: apicurito-ui
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: apicurito
component: apicurito-ui
name: apicurito-ui
spec:
replicas: 1
selector:
app: apicurito
component: apicurito-ui
strategy:
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
resources:
limits:
memory: "256Mi"
requests:
memory: "20Mi"
type: Rolling
template:
metadata:
labels:
app: apicurito
component: apicurito-ui
spec:
containers:
- name: apicurito-ui
image: ' '
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: "/"
port: 8080
initialDelaySeconds: 30
readinessProbe:
httpGet:
path: "/"
port: 8080
initialDelaySeconds: 1
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /html/config
name: config-volume
# Set to burstable with a low memory footprint to start (50 Mi)
resources:
limits:
memory: 255Mi
requests:
memory: 50Mi
volumes:
- name: config-volume
configMap:
name: apicurito-ui-config
triggers:
- imageChangeParams:
automatic: true
containerNames:
- apicurito-ui
from:
kind: ImageStreamTag
name: apicurito-ui:latest
# namespace: ${IMAGE_STREAM_NAMESPACE}
type: ImageChange
- type: ConfigChange