Collabora Kubernetes setup
- kubernetes collabora nextcloud helm
install collabora via helm chart
requirements
- kubernetes 1.9+
- nginx-ingress
- cert-manager
- helm
Before we start
I´m using rancher to manage my kubernetes cluster. I set it up together with nginx as ingress-controller which is the rancher default. Additionally I installed cert-manager from helm to create letsencrypt certificate for ingresses automatically. But more on that later.
Fortunately there is an official docker image for the code edition of collabora. With the correct configuration it´s really easy to setup.
collabora configuration
The helm chart for collabora contains all needed configurations.
The complete collabora config part looks like:
collabora:
DONT_GEN_SSL_CERT: true
extra_params: --o:ssl.termination=true --o:ssl.enable=false
domain: nextcloud\\.yourdomain\\.com
server_name: collabora\.youdomain\.com
password: yourpassword
username: admin
dictionaries: de_DE en_GB en_US
Ingress configuration
With this every ingress with the following configuration will result in a working https accessible service.
ingress:
enabled: true
annotations:
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
kubernetes.io/tls-acme: "true"
paths:
- /
hosts:
- collabora.k8s.ingenhaag-tech.de
tls:
- secretName: collabora-tls
hosts:
- collabora.k8s.ingenhaag-tech.de
set ressource
resources:
limits:
cpu: 2000m
memory: 1024Mi
requests:
cpu: 250m
memory: 256Mi
Install everything
helm install stable/collabora-code -f myvalues.yaml