rocketchat
by Rocket.Chat
Prepare to take off with the ultimate chat platform, experience the next level of team communications
About this chart
Rocket.Chat
Rocket.Chat is free, unlimited and open source. Replace email, HipChat & Slack with the ultimate team chat software solution.
WARNING: Upgrading to chart version 7.0.0 changes the default pod UID from 999 to 65533. If you have
persistence.enabled: true, PVC data must be re-owned before upgrading. See Upgrading to 7.0.0 for details.
WARNING: Upgrading to chart version 5.4.3 or higher might require extra steps to successfully update MongoDB and Rocket.Chat. See Upgrading to 5.4.3 for more details.
Introduction
This chart bootstraps a Rocket.Chat Deployment on a Kubernetes cluster using the Helm package manager. It provisions a fully featured Rocket.Chat installation.
In addition, this chart supports scaling of Rocket.Chat for increased server capacity and high availability (requires enterprise license). For more information on Rocket.Chat and its capabilities, see its documentation.
Prerequisites Details
The chart has an optional dependency on the MongoDB chart. By default, the MongoDB chart requires PV support on underlying infrastructure (may be disabled).
Installing the Chart
To install the chart with the release name rocketchat:
$ helm install rocketchat rocketchat/rocketchat --set mongodb.auth.passwords={rocketchatPassword},mongodb.auth.rootPassword=rocketchatRootPassword
If you got a registration token for Rocket.Chat Cloud, you can also include it:
$ helm install rocketchat rocketchat/rocketchat --set mongodb.auth.passwords={rocketchatPassword},mongodb.auth.rootPassword=rocketchatRootPassword,registrationToken=<paste the token here>
Usage of Values.yaml file is recommended over using command line arguments --set. You must set at least the database password and root password in the values file.
mongodb:
auth:
passwords:
- rocketchat
rootPassword: rocketchatroot
Now use the following command to deploy
helm install rocketchat -f Values.yaml rocketchat/rocketchat
Starting chart version 5.4.3, due to mongodb dependency, username, password and database entries must be arrays of the same length. Rocket.Chat will use the first entries of those arrays for its own use.
mongodb.auth.usernamesarray defaults to{rocketchat}andmongodb.auth.databasesarray defaults to{rocketchat}
Uninstalling the Chart
To uninstall/delete the rocketchat deployment:
$ helm delete rocketchat
Configuration
The following table lists the configurable parameters of the Rocket.Chat chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Image repository | registry.rocket.chat/rocketchat/rocket.chat |
image.tag | Image tag | 3.18.3 |
image.pullPolicy | Image pull policy | IfNotPresent |
host | Hostname for Rocket.Chat. Also used for ingress (if enabled) | "" |
replicaCount | Number of replicas to run | 1 |
smtp.enabled | Enable SMTP for sending mails | false |
smtp.existingSecret | Use existing secret for SMTP account | "" |
smtp.username | Username of the SMTP account | "" |
smtp.password | Password of the SMTP account | "" |
smtp.host | Hostname of the SMTP server | "" |
smtp.port | Port of the SMTP server | 587 |
extraEnv | Extra environment variables for Rocket.Chat. Used with tpl function, so this needs to be a string | "" |
extraSecret | An already existing secret to be used by chat deployment. It needs to be a string | "" |
extraVolumes | Extra volumes allowing inclusion of certificates or any sort of file that might be required (see bellow) | [] |
extraVolumeMounts | Where the aforementioned extra volumes should be mounted inside the container | [] |
extraInitContainers | Containers run before the rocketchat container starts. Rendered with tpl, so entries can reference .Values/.Chart (e.g. to reuse the main image or UID, see bellow) | [] |
podAntiAffinity | Pod anti-affinity can prevent the scheduler from placing RocketChat replicas on the same node. The default value "soft" means that the scheduler should prefer to not schedule two replica pods onto the same node but no guarantee is provided. The value "hard" means that the scheduler is required to not schedule two replica pods onto the same node. The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured. | "" |
podAntiAffinityTopologyKey | If anti-affinity is enabled sets the topologyKey to use for anti-affinity. This can be changed to, for example failure-domain.beta.kubernetes.io/zone | kubernetes.io/hostname |
affinity | Assign custom affinity rules to the RocketChat instance https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | {} |
minAvailable | Minimum number / |
Deploy rocketchat with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rocketchat 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartrocketchat is pinned at v7.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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