collabora-code

by chrisingenhaag

Helm chartv2.6.0App 23.05.10.1.1

A Helm chart for Collabora Office - CODE-Edition

About this chart

Collabora CODE

Collabora is a online office suite.

Introduction

This chart creates a single Collabora CODE Pod to run Collabora CODE suite, for example as integration together with nextcloud. Installation is based on the docker documentation CollaboraDocker.

For most easy integration it´s recommended to use cert-manager together with your favorite ingress controller to get a fully working, ssl-terminated Collabora CODE server.

Prerequisites

  • Kubernetes 1.9+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release, run:

$ helm install --name my-release stable/collabora

This command deploys a Collabora Online Development Edition server.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

Refer to values.yaml for the full run-down on defaults. These are a mixture of Kubernetes and Collabora-related directives that map to environment variables in the CollaboraCODEDocker Docker image.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install --name my-release \
    --set varname=true stable/collabora

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml stable/collabora

Tip: You can use the default values.yaml

The following tables lists the configurable parameters of this chart and their default values.

ParameterDescriptionDefault
replicaCountNumber of provisioner instances to deployed1
strategySpecifies the strategy used to replace old Pods by new onesRecreate
image.repositoryProvisioner imagecollabora/code
image.tagVersion of provisioner image``
image.pullPolicyImage pull policyIfNotPresent
collabora.DONT_GEN_SSL_CERTtrue
collabora.domainDouble escaped WOPI host (DEPRECATED)wopihost\\.domain
collabora.aliasgroupsList of objects containing domain and list of aliases (see values.yaml for exmaple)[]
collabora.extra_paramsList of params to use as env var--o:ssl.termination=true --o:ssl.enable=false
collabora.server_nameCollabora server name (single escaped)collabora\.domain
collabora.existingSecretAn existing secret containing the collabora admin panel pass.{}
collabora.existingSecret.enabledEnable the extisting secret. If enabled, collabora.password and collabora.username are ignored.false
collabora.existingSecret.secretNameName of the existing secret.``
collabora.existingSecret.usernameKeyKey within the secret that contains the usernameusername
collabora.existingSecret.passwordKeyKey within the secret that contains the passwordpassword
collabora.passwordCollabora admin panel passexamplepass
collabora.usernameCollabora admin panel useradmin
collabora.dictionariesCollabora enabled dictionariesde_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru
ingress.enabledfalse
ingress.annotations{}
ingress.paths[]
ingress.hosts[]
ingress.tls[]
livenessProbe.enabledTurn on and off liveness probetrue
livenessProbe.initialDelaySecondsDelay before liveness probe is initiated30
livenessProbe.periodSecondsHow often to perform the probe10
livenessProbe.timeoutSecondsWhen the probe times out2
livenessProbe.successThresholdMinimum consecutive successes for the probe1
livenessProbe.failureThresholdMinimum consecutive failures for the probe3
livenessProbe.schemeScheme for the probeHTTP
livenessProbe.pathPath for the probe/
readinessProbe.enabledTurn on and off readiness probetrue
readinessProbe.initialDelaySecondsDelay before readiness probe is initiated30
readinessProbe.periodSecondsHow often to perform the probe10
readinessProbe.timeoutSecondsWhen the probe times out2
readinessProbe.successThresholdMinimum consecutive successes for the probe1
readinessProbe.failureThresholdMinimum consecutive failures for the probe3
readinessProbe.schemeScheme for the probeHTTP
readinessProbe.pathPath for the probe/
securityContext.allowPrivilegeEscalationCreate & use Pod Security Policy resourcestrue
securitycontext.capabilities.addCollabora needs to run with MKNOD as capabibility[MKNOD]
resourcesResources required (e.g. CPU, memory){}
nodeSelectorNode labels for pod assignment{}
affinityAffinity settings{}
tolerationsList of node taints to tolerate[]

Persistence

There is no need for a persistent storage to run collabora code edition. All parameters in /etc/loolwsd/loolwsd.xml can be adjusted with using extra_params environment variable.

Changelog

Update to 2.3.0

Beginning with Collabora CODE docker image version 21.11.3.6 the definition of domains has changed. The values property collabora.domain is now deprecated, but it´s supported for backwards compatibility.

Instead of the old definition

collabora:
  domain: nextcloud\\.domain

the replacement for this is

collabora:
  aliasgroups:
    - domain: https://nextcloud.domain:443
      aliases:
        - alias1\\.domain
        - alias2\\.domain

If you already defined a property collabora.domain with a value foo\\.bar thie will be automatically appended to aliasgroups resulting in the following exampe:

collabora:
  aliasgroups:
    - domain: https://foo.bar:443

Notice that there is noe escaped dot here anymore and we have a protocol and a port. My tests were only successful with such a defintion.

Deploy collabora-code with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has collabora-code on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcollabora-code is pinned at v2.6.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply