Newer
Older
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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
app.kubernetes.io/name: ${FQDN}-app
namespace: ${NS}
name: ${FQDN}-app
spec:
progressDeadlineSeconds: 600
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/name: ${FQDN}-app
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app.kubernetes.io/name: ${FQDN}-app
spec:
containers:
- env:
- name: ALLOWED_HOSTS
value: ${ALLOWED_HOSTS}
- name: HOSTNAME
value: ${FQDN_DOTS}
- name: ADMIN_PASS
valueFrom:
secretKeyRef:
key: ADMIN_PASS
name: ${FQDN}-auth
- name: DICTIONARIES
value: fr_FR en_GB en_US
- name: LOG_LEVEL
value: warning
image: tiredofit/libreoffice-online:2.1.6
imagePullPolicy: Always
name: collabora
ports:
- containerPort: 9980
name: api
protocol: TCP
resources:
limits:
memory: 5Gi
securityContext:
capabilities:
add:
- MKNOD
- NET_ADMIN
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
data:
ADMIN_PASS:
kind: Secret
metadata:
name: ${FQDN}-auth
namespace: ${NS}
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/name: ${FQDN}
name: ${FQDN}
namespace: ${NS}
spec:
ports:
- name: api
port: 9980
protocol: TCP
targetPort: api
selector:
app.kubernetes.io/name: ${FQDN}-app
sessionAffinity: None
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/upstream-hash-by: $arg_WOPISrc
name: ${FQDN}
namespace: ${NS}
spec:
rules:
- host: ${FQDN_DOTS}
http:
paths:
- backend:
serviceName: ${FQDN}
servicePort: api
path: /
tls:
- hosts:
- ${FQDN_DOTS}
secretName: ${FQDN}-tls