1
0
Fork 0

add collabora service

This commit is contained in:
Massaki Archambault 2023-06-16 22:29:18 -04:00
parent 0c0cd2b291
commit b8165da4db
4 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: collabora
labels:
app.kubernetes.io/component: collabora
spec:
selector:
matchLabels:
app.kubernetes.io/component: collabora
template:
metadata:
labels:
app.kubernetes.io/component: collabora
spec:
containers:
- name: collabora
image: collabora/code
env:
- name: server_name
value: ${NEXTCLOUD_EXTERNAL_HOST}
- name: extra_params
value: --o:ssl.enable=false --o:ssl.termination=true
- name: DONT_GEN_SSL_CERT
value: "true"
ports:
- name: http
containerPort: 9980
securityContext:
capabilities:
add:
- MKNOD
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 1000m
memory: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: collabora
labels:
app.kubernetes.io/component: collabora
spec:
selector:
app.kubernetes.io/component: collabora
ports:
- name: http
port: 80
targetPort: http

View File

@ -2,6 +2,7 @@ resources:
- ../postgres
- ../redis
- nextcloud-deployment.yaml
- collabora-deployment.yaml
- nextcloud-cronjob.yaml
- previewgenerator-cronjob.yaml
- nextcloud-ingress.yaml
@ -31,6 +32,11 @@ replacements:
name: server
fieldPaths:
- spec.rules.0.host
- select:
kind: Deployment
name: collabora
fieldPaths:
- spec.template.spec.containers.0.env.0.value
patches:
- patch: |-

View File

@ -110,6 +110,9 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-pvc
labels:
app.kubernetes.io/name: nextcloud
app.kubernetes.io/component: server
spec:
accessModes:
- ReadWriteOnce
@ -123,9 +126,11 @@ metadata:
name: server
labels:
app.kubernetes.io/name: nextcloud
app.kubernetes.io/component: server
spec:
selector:
app.kubernetes.io/name: nextcloud
app.kubernetes.io/component: server
ports:
- name: http
port: 80

View File

@ -17,3 +17,31 @@ spec:
name: server
port:
name: http
- path: /browser
pathType: Prefix
backend:
service:
name: collabora
port:
name: http
- path: /hosting/discovery
pathType: Prefix
backend:
service:
name: collabora
port:
name: http
- path: /hosting/capabilities
pathType: Prefix
backend:
service:
name: collabora
port:
name: http
- path: /cool
pathType: Prefix
backend:
service:
name: collabora
port:
name: http