1
0
Fork 0
home-stack-kustomize/kustomize/bases/nextcloud/collabora-deployment.yaml

54 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: collabora
labels:
app.kubernetes.io/component: collabora
spec:
replicas: 1
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