-
Notifications
You must be signed in to change notification settings - Fork 4
/
collabora.yaml
193 lines (193 loc) · 4.88 KB
/
collabora.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
apiVersion: v1
kind: Template
metadata:
name: collabora
annotations:
description: "Collabora Online is a powerful LibreOffice-based online office that supports all major document, spreadsheet and presentation file formats, which you can integrate in your own infrastructure."
tags: "fileshare,collabora,libreoffice"
iconClass: fa-cloud-upload
template.openshift.io/provider-display-name: "tobrunet"
template.openshift.io/documentation-url: "https://github.com/tobru/collabora-openshift/blob/master/README.md"
template.openshift.io/support-url: "https://github.com/tobru/collabora-openshift/issues"
parameters:
- name: APP_URL
description: Application URL (Route/host)
required: true
- name: IMAGE
description: Application Docker Image to deploy
value: tobru/loolwsd
- name: IMAGE_TAG
description: Tag of the Application Docker Image to deploy
value: latest
- name: NGINX_IMAGE
description: Nginx Docker Image to deploy
value: tobru/loolwsd-nginx
- name: NGINX_IMAGE_TAG
description: Tag of the Nginx Docker Image to deploy
value: latest
objects:
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: collabora
name: collabora
spec:
tags:
- annotations:
openshift.io/imported-from: ${IMAGE}:${IMAGE_TAG}
from:
kind: DockerImage
name: ${IMAGE}:${IMAGE_TAG}
importPolicy:
scheduled: true
name: ${IMAGE_TAG}
referencePolicy:
type: Source
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: collabora
name: nginx
spec:
tags:
- annotations:
openshift.io/imported-from: ${NGINX_IMAGE}:${NGINX_IMAGE_TAG}
from:
kind: DockerImage
name: ${NGINX_IMAGE}:${NGINX_IMAGE_TAG}
importPolicy:
scheduled: true
name: ${NGINX_IMAGE_TAG}
referencePolicy:
type: Source
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: collabora
name: collabora
spec:
replicas: 1
selector:
app: collabora
deploymentconfig: collabora
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: collabora
deploymentconfig: collabora
spec:
containers:
- image: collabora
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 9980
timeoutSeconds: 5
name: collabora
ports:
- containerPort: 9980
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 9980
timeoutSeconds: 5
resources: {}
terminationMessagePath: /dev/termination-log
- image: nginx
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8080
timeoutSeconds: 1
name: nginx
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8080
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- collabora
from:
kind: ImageStreamTag
name: collabora:${IMAGE_TAG}
type: ImageChange
- imageChangeParams:
automatic: true
containerNames:
- nginx
from:
kind: ImageStreamTag
name: nginx:${NGINX_IMAGE_TAG}
type: ImageChange
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
app: collabora
name: collabora
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: collabora
deploymentconfig: collabora
sessionAffinity: None
type: ClusterIP
- apiVersion: v1
kind: Route
metadata:
name: collabora
spec:
host: ${APP_URL}
port:
targetPort: 8080-tcp
to:
kind: Service
name: collabora
weight: 100
wildcardPolicy: None