rocketchat

by Rocket.Chat

Helm chartv7.1.0App 8.6.1

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.usernames array defaults to {rocketchat} and mongodb.auth.databases array 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.

ParameterDescriptionDefault
image.repositoryImage repositoryregistry.rocket.chat/rocketchat/rocket.chat
image.tagImage tag3.18.3
image.pullPolicyImage pull policyIfNotPresent
hostHostname for Rocket.Chat. Also used for ingress (if enabled)""
replicaCountNumber of replicas to run1
smtp.enabledEnable SMTP for sending mailsfalse
smtp.existingSecretUse existing secret for SMTP account""
smtp.usernameUsername of the SMTP account""
smtp.passwordPassword of the SMTP account""
smtp.hostHostname of the SMTP server""
smtp.portPort of the SMTP server587
extraEnvExtra environment variables for Rocket.Chat. Used with tpl function, so this needs to be a string""
extraSecretAn already existing secret to be used by chat deployment. It needs to be a string""
extraVolumesExtra volumes allowing inclusion of certificates or any sort of file that might be required (see bellow)[]
extraVolumeMountsWhere the aforementioned extra volumes should be mounted inside the container[]
extraInitContainersContainers 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)[]
podAntiAffinityPod 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.""
podAntiAffinityTopologyKeyIf anti-affinity is enabled sets the topologyKey to use for anti-affinity. This can be changed to, for example failure-domain.beta.kubernetes.io/zonekubernetes.io/hostname
affinityAssign custom affinity rules to the RocketChat instance https://kubernetes.io/docs/concepts/configuration/assign-pod-node/{}
minAvailableMinimum 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrocketchat is pinned at v7.1.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