Skip to content

Install with Helm

The supported way to run Vesicle is the vss (Vesicle Server Suite) Helm chart. One release installs the whole suite: the four Vesicle services, the database, NATS and Matrix Authentication Service (MAS).

The chart is published as an OCI artifact and pulls the container images from the same public registry:

WhatWhere
Chartoci://quay.io/vesicle/charts/vss
Imagesquay.io/vesicle/vesicle-gateway, vesicle-engine, vesicle-worker, vesicle-auth
VersionOne SemVer for the chart and the images, for example 0.1.0-beta.1. A chart version always installs the images of the same version.

No registry login is needed. The release is pinned with --version; there is no latest.

  • Kubernetes 1.30 or later.
  • Helm 3.8 or later (OCI support).
  • kubectl configured for the target cluster.
  • The CloudNativePG operator installed in the cluster. The chart creates the PostgreSQL cluster for it. If you bring your own database, see Choose a database.
  • An ingress controller (Kubernetes Ingress) or a Gateway API implementation.
  • DNS for the Matrix server_name and the satellite hostnames. See DNS and hostnames.

Create my-values.yaml. Replace matrix.example.com with your Matrix server_name. Choose it carefully: it is part of every user ID and cannot be changed later without a migration.

global:
serverName: matrix.example.com
gateway:
# Required: the pod network CIDR of your cluster. The gateway trusts X-Forwarded-For only from here.
trustedProxyCidr: 10.42.0.0/16 # k3s default. kind: 10.244.0.0/16
ingress:
enabled: true
ingressClassName: nginx
hostnames: [matrix.example.com]
tls:
- secretName: matrix-example-com-tls
hosts: [matrix.example.com]
matrix-authentication-service:
ingress:
enabled: true
host: account.matrix.example.com
className: nginx
policy:
adminUsers: [alice] # localparts that get admin rights

Set the Gateway once; every component that has a public hostname is published through it.

global:
serverName: matrix.example.com
gatewayApi:
enabled: true
parentRefs:
- name: my-gateway
namespace: gateway-system
gateway:
trustedProxyCidr: 10.42.0.0/16
matrix-authentication-service:
policy:
adminUsers: [alice]

gateway.trustedProxyCidr has no default because it depends on your cluster. The install stops with an error message when it is empty.

Element Web (the chat client), Element Admin and MatrixRTC (calls) are off by default:

elementWeb:
enabled: true
elementAdmin:
enabled: true
matrixRTC:
enabled: true

Each gets its own hostname derived from global.serverName. See DNS and hostnames and Ingress for the details, including the extra TCP and UDP ports that calls need.

Matrix Authentication Service is on by default. If you run it separately, set matrix-authentication-service.enabled: false.

Terminal window
helm install vss oci://quay.io/vesicle/charts/vss \
--version 0.1.0-beta.1 \
--namespace vss \
--create-namespace \
-f my-values.yaml

Resources are named <release>-<component>: with the release name vss you get vss-gateway, vss-engine, vss-worker and vss-auth.

The chart generates the database passwords and the federation signing key on first install and keeps them across upgrades. You do not put passwords in the values file.

kubectl -n vss get pods
NAME READY STATUS RESTARTS AGE
vss-auth-… 1/1 Running 0 …
vss-auth-… 1/1 Running 0 …
vss-engine-… 1/1 Running 0 …
vss-engine-… 1/1 Running 0 …
vss-gateway-… 1/1 Running 0 …
vss-gateway-… 1/1 Running 0 …
vss-matrix-authentication-service-… 1/1 Running 0 …
vss-migrate-… 0/1 Completed 0 …
vss-nats-0 2/2 Running 0 …
vss-nats-box-… 1/1 Running 0 …
vss-postgres-1 1/1 Running 0 …
vss-worker-… 1/1 Running 0 …
vss-worker-… 1/1 Running 0 …

The vss-migrate job creates the database schema and ends as Completed. Each of the four Vesicle services runs two replicas with a PodDisruptionBudget. With Element Web, Element Admin and MatrixRTC enabled you also see vss-element-web, vss-element-admin, vss-matrix-rtc-authorisation and vss-matrix-rtc-sfu.

Then:

  1. Confirm DNS and TLS for every hostname.
  2. Open https://<serverName>/.well-known/matrix/client. It returns the homeserver URL when the gateway is reachable.
  3. With Element Web enabled, open https://chat.<serverName>/ and log in. MAS serves the account pages at account.<serverName>.

How traffic reaches those pods is on Architecture.

  • Back up the federation signing key. It is your server’s cryptographic identity towards every other server. The chart stores it in the Secret <release>-federation-signing. Copy it somewhere safe. If you want to supply your own, create a Secret with the key seed and set federationSigning.existingSecret.
  • Set up database backups. helm uninstall removes the database cluster and, normally, its volumes. See Back up and restore the database.
  • Keep federation TLS verification on. It is the default. federationTLSVerify: false exists only for test setups with self-signed certificates.
  • Set resource limits for your own sizing. The services have requests only (<service>.resources, database.cnpg.resources).
Terminal window
helm upgrade vss oci://quay.io/vesicle/charts/vss \
--version <new-version> \
--namespace vss \
-f my-values.yaml

Take a database backup before you upgrade. The migration job runs as part of the upgrade.

Terminal window
helm uninstall vss --namespace vss

The generated Secrets (database passwords, the federation signing key) and the NATS volumes are kept, so a reinstall under the same release name keeps the server’s identity. The database is different: the PostgreSQL cluster is deleted together with its data unless you have backups.

Every service takes a config map that is merged over the chart’s defaults, and existingSecrets for secret files. Set only what you change. All values are documented in the chart’s values.yaml and validated by values.schema.json, so a wrong type fails at helm install. Browse them on Artifact Hub (see the Configuration reference), or show them with:

Terminal window
helm show values oci://quay.io/vesicle/charts/vss --version 0.1.0-beta.1

The chart is Apache-2.0. The Vesicle images are licensed under PolyForm Noncommercial 1.0.0. See License.