jitsi

by lg08

Helm chartv0.7.3App stable-8615MIT

A Helm chart for Kubernetes

About this chart

P.S. PRs with fixes or improves are welcome ;-)

About

A Jitsi Meet Chart for Kubernetes with 2 replicas of HAproxy in peering. All Jitsi shard are in backend via server-template in configuration.

This chart will install and configure: HAProxy statefulset, Jicofo deployment, JVB statefulset (scalable), web interface, prosody XMPP server.

Architecture

The Jitsi Kubernetes namespace has the following architecture:

The setup shown above contains only a single shard (for visual clarity). Subsequent shards would be attached to the web service. A more detailed explanation of the system architecture with multiple shards can be found in architecture/architecture.md.

Install chart

To download and to install the Jitsi Meet Chart, make sure that you have the Helm CLI (v2+) installed and clone this repository on your machine.

To install the chart, in your terminal, go to the jitsi-helm repository and run the following command:

helm install -n jitsi ./ --wait

If you want to use your own custom watermark, first create configmap from your png file:

kubectl create configmap -n <namespace> watermark --from-file=watermark.png

It assumes that you have a Nginx Ingress controller and you use CertManager along with ACME issuer type for managing the HTTPS certificates.

Because --wait flag, the status will be given once Jisti Meet is ready.

Updating the chart

To update the chart, in your terminal, go to the jitsi-helm repository and run the following command:

helm upgrade jitsi ./ --wait

Delete the chart

To delete the chart, in your terminal, go to the jitsi-helm repository and run the following command:

helm delete --purge jitsi

Configuration

The following table lists the configurable parameters of the Jitsi Meet chart and their default values.

ParameterDescriptionDefault
shardCountNumber of shards2
haproxy.imageDocker imagehaproxy:2.1
ingress.enabledEnable ingresstrue
ingress.hostsList of hosts in this ingressempty
ingress.class Which ingressClassName to useempty
ingress.tls.enabledEnable TLS for ingresstrue
ingress.tls.secretNameName of the secret storing the TLS certificate and keyjitsi-tls
ingress.extraPaths Extra paths to add to the ingress[]
jicofo.imageJicofo docker imagejitsi/jicofo
jicofo.imagePullPolicyJicofo image pull policyAlways
jicofo.extraEnvsJicofo extra environment variables[]
jvb.imageJVB docker imagejitsi/jvb
jvb.image.imagePullPolicyJVB image pull policyAlways
jvb.replicasJVB replica count1
jvb.monitoringEnableJVB exporter containertrue
jvb.hostPortJVB hostPortempty
jvb.nodeportPrefixJVB Node port prefix30
jvb.extraEnvsJVB extra environment variables[]
prosody.imageProsody docker imagejitsi/prosody
prosody.image.imagePullPolicyProsody image pull policyAlways
prosody.extraEnvsExtra env var for prosody deployment[]
prosody.extraVolumesAdditionnal volumes to the prosody deployment[]
prosody.extraVolumeMountsAdditional volume mounts to the prosody deployment[]
prosody.globalModulesAdditional global modules to enable on prosody[]
prosody.globalConfigAdditional global config parameters on prosody[]
uvs.enableWhether the Matrix User Verification Service should be enabledfalse
web.imageWeb docker imagejitsi/web
web.image.imagePullPolicyWeb image pull policyAlways
web.extraEnvsExtra env var for web deployment[]
web.extraVolumesAdditionnal volumes to the web deployment[]
web.extraVolumeMountsAdditional volume mounts to the web deployment[]
watermarkWatermark logotrue

Running two jitsi instances inside the same cluster

  1. The second instance should be deployed with specific settings :
  • jvb.nodeportPrefix should use a different value from 30 to avoid ports conflicts or
  • jvb.hostPort that's distinct from other installations

Deploy jitsi with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has jitsi 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 chartjitsi is pinned at v0.7.3 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