Newer
Older
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
app.kubernetes.io/name: ${FQDN}-app
namespace: ${NS}
name: ${FQDN}-app
spec:
progressDeadlineSeconds: 600
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
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
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