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:
| What | Where |
|---|---|
| Chart | oci://quay.io/vesicle/charts/vss |
| Images | quay.io/vesicle/vesicle-gateway, vesicle-engine, vesicle-worker, vesicle-auth |
| Version | One 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.
Prerequisites
Section titled “Prerequisites”- Kubernetes 1.30 or later.
- Helm 3.8 or later (OCI support).
kubectlconfigured 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_nameand the satellite hostnames. See DNS and hostnames.
Values
Section titled “Values”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.
With Kubernetes Ingress
Section titled “With Kubernetes Ingress”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 rightsWith the Gateway API
Section titled “With the Gateway API”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.
Optional components
Section titled “Optional components”Element Web (the chat client), Element Admin and MatrixRTC (calls) are off by default:
elementWeb: enabled: trueelementAdmin: enabled: truematrixRTC: enabled: trueEach 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.
Install
Section titled “Install”helm install vss oci://quay.io/vesicle/charts/vss \ --version 0.1.0-beta.1 \ --namespace vss \ --create-namespace \ -f my-values.yamlResources 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.
Check the result
Section titled “Check the result”kubectl -n vss get podsNAME READY STATUS RESTARTS AGEvss-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:
- Confirm DNS and TLS for every hostname.
- Open
https://<serverName>/.well-known/matrix/client. It returns the homeserver URL when the gateway is reachable. - With Element Web enabled, open
https://chat.<serverName>/and log in. MAS serves the account pages ataccount.<serverName>.
How traffic reaches those pods is on Architecture.
Before real use
Section titled “Before real use”- 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 keyseedand setfederationSigning.existingSecret. - Set up database backups.
helm uninstallremoves the database cluster and, normally, its volumes. See Back up and restore the database. - Keep federation TLS verification on. It is the default.
federationTLSVerify: falseexists 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).
Next steps
Section titled “Next steps”- Back up and restore the database: turn on continuous archiving and scheduled backups.
- Monitoring: metrics, ServiceMonitors and health endpoints.
- Sign in with Google: add an upstream OpenID Connect provider.
- Configuration reference: every value, with the schema, on Artifact Hub.
Upgrade
Section titled “Upgrade”helm upgrade vss oci://quay.io/vesicle/charts/vss \ --version <new-version> \ --namespace vss \ -f my-values.yamlTake a database backup before you upgrade. The migration job runs as part of the upgrade.
Uninstall
Section titled “Uninstall”helm uninstall vss --namespace vssThe 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.
Configuration
Section titled “Configuration”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:
helm show values oci://quay.io/vesicle/charts/vss --version 0.1.0-beta.1License
Section titled “License”The chart is Apache-2.0. The Vesicle images are licensed under PolyForm Noncommercial 1.0.0. See License.