Guides

Kymoscope Site on Kubernetes

Run Kymoscope Site on your own Kubernetes cluster with the Helm chart: prerequisites, install, upgrade, backup.

The Helm chart runs the same stack as Kymoscope Site on one host, from the same images, with the same rule: nothing leaves your network. The kymoscope-site tool from the bundle makes every secret and runs every install step; Helm only places the pods. This option is switched on by your contract.

Prerequisites

  • Kubernetes 1.27 or newer, x86-64 nodes, and kubectl and helm 3 on your workstation.
  • A network plugin that enforces NetworkPolicy (Calico, Cilium, the one built into k3s...). The chart denies all traffic in and out, then allows only what the stack needs. Without enforcement nothing stops the pods.
  • A default storage class (or name one), with room for the database, files and recordings.
  • A namespace of its own: the services keep fixed names such as db and kong.
  • The images from the bundle, on every node or in your private registry. Each node imports them the way your cluster does, for example ctr -n k8s.io images import, or you push them to a registry and set imageRegistry: registry.customer.local/kymoscope in my-values.yaml.
  • On your workstation: openssl and a POSIX shell, as for the single-host install.

Size it as the single-host install: 4 cores and 8 to 16 GB of RAM for the stack, the disk for your retention.

Install

1. Make the secrets and the manifest. Run this in the bundle's folder; keep the folder, it holds the secrets:

Shell
site/bin/kymoscope-site k8s init --url https://kymoscope.customer.local \
  --lead-email lead@customer.local --internal-ca      # or --tls-cert site.pem --tls-key site.key

It prints the lead's first password and the site key, and writes site/k8s-out/kymoscope-site.yaml (Secrets: keep it off git) and site/k8s-out/values.yaml (no secrets).

2. Apply the manifest and install the chart:

Shell
kubectl create namespace kymoscope
kubectl apply --server-side -n kymoscope -f site/k8s-out/kymoscope-site.yaml
helm upgrade --install kymoscope site/helm/kymoscope-site -n kymoscope \
  -f site/k8s-out/values.yaml -f my-values.yaml --timeout 20m

After the pods start, an install Job migrates the database, sets up the scheduled jobs, and creates the lead and your organization. kubectl logs -n kymoscope job/kymoscope-site-install shows what it did.

3. Send us the site key and host names, then add the licence file you get back:

Shell
site/bin/kymoscope-site k8s init --license site-licence.txt
kubectl apply --server-side -n kymoscope -f site/k8s-out/kymoscope-site.yaml
helm upgrade kymoscope site/helm/kymoscope-site -n kymoscope -f site/k8s-out/values.yaml -f my-values.yaml

The Job applies the licence once; later upgrades leave it alone.

Reach the site

The app pod serves HTTPS itself with your certificate (or the internal CA's), so the browser's encryption works end to end. Pick one way in, in my-values.yaml:

SettingUse
expose.type: LoadBalancerThe default: a load balancer address on 443 (and 80, which redirects).
expose.type: NodePortA port on every node; set expose.nodePorts.https.
ingress.enabled: trueYour ingress controller (with expose.type: ClusterIP). It must talk HTTPS to the app and check its certificate: see below.

Point the site's name (kymoscope.customer.local) at that address.

Traefik (the one in k3s, and many others). The chart adds a Traefik ServersTransport that checks the app's certificate:

Shell
expose: { type: ClusterIP }
ingress:
  enabled: true
  className: traefik
  traefik: { serversTransport: true }
  trustedProxies: [10.42.0.0/16]    # your cluster's pod network

ingress-nginx. Put its settings in the annotations. The proxy-ssl-* lines make it check the app's certificate with the CA in kymoscope-site-tls:

Shell
expose: { type: ClusterIP }
ingress:
  enabled: true
  className: nginx
  trustedProxies: [10.244.0.0/16]   # your cluster's pod network
  annotations:
    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
    nginx.ingress.kubernetes.io/proxy-ssl-verify: "on"
    nginx.ingress.kubernetes.io/proxy-ssl-secret: kymoscope/kymoscope-site-tls
    nginx.ingress.kubernetes.io/proxy-ssl-name: kymoscope.customer.local
    nginx.ingress.kubernetes.io/proxy-ssl-server-name: "on"
    nginx.ingress.kubernetes.io/proxy-body-size: 64m
    nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"

Set trustedProxies to the networks the controller connects from, so each user keeps their own rate limit. With your own certificate instead of the internal CA, give the controller the CA that signed it.

What never leaves the cluster

  • Every pod is denied all traffic, then allowed to reach the other pods of the install and the cluster DNS only.
  • Only the app takes connections from outside, on 443 and 80. networkPolicy.appFrom narrows who may connect.
  • No pod gets a Kubernetes API token or extra privileges.
  • The audit log to your SIEM is the one way out, and only when you turn it on: set SYSLOG_TARGET in site/k8s.env, run k8s init again, and list the SIEM's address in auditSyslog.to with auditSyslog.enabled: true.

Change a setting

Settings live in site/k8s.env, the same names as the single-host .env (SMTP, SITE_OPEN_SIGNUP, METRICS_TOKEN...). Edit it, then:

Shell
site/bin/kymoscope-site k8s init
kubectl apply --server-side -n kymoscope -f site/k8s-out/kymoscope-site.yaml
helm upgrade kymoscope site/helm/kymoscope-site -n kymoscope -f site/k8s-out/values.yaml -f my-values.yaml

The upgrade restarts the pods, so they pick up the new settings.

Upgrade

We send a signed bundle for each release. This checks our signature and every file, takes a backup, loads the images (and pushes them to your registry with --registry), and puts the new files in place:

Shell
KUBECTL="kubectl -n kymoscope" site/bin/kymoscope-site k8s update \
  --registry registry.customer.local/kymoscope kymoscope-site-1.1.0.tar

Without a registry, import the images on every node as at install. Then:

Shell
site/bin/kymoscope-site k8s init
kubectl apply --server-side -n kymoscope -f site/k8s-out/kymoscope-site.yaml
helm upgrade kymoscope site/helm/kymoscope-site -n kymoscope -f site/k8s-out/values.yaml -f my-values.yaml --timeout 20m

The install Job runs the new migrations. It stops with a clear message if the manifest and the chart are for different versions.

Backup and restore

Shell
export KUBECTL="kubectl -n kymoscope"
export KYMOSCOPE_BACKUP_PASSPHRASE='...'   # or you are prompted
site/bin/kymoscope-site k8s backup /backups/site-2026-12-01.enc
site/bin/kymoscope-site k8s restore /backups/site-2026-12-01.enc

One encrypted file holds the database, stored files, recordings, the certificate and the install's secrets: the same format as the single-host backup, so a backup from either install restores on the other. Keep the passphrase apart from the file.

Restore onto an install of the same version. It stops the stack, empties the volumes, puts the backup back and starts everything again. As on a single host, it never brings back an older licence than the newest you applied: that one is applied again.

The volumes are kept when you uninstall the chart.

Health and sign-in with your identity provider

Shell
export KUBECTL="kubectl -n kymoscope"
site/bin/kymoscope-site k8s status --egress
site/bin/kymoscope-site k8s sso add --metadata idp-metadata.xml --domain customer.local
site/bin/kymoscope-site k8s sso list

status checks every service, the scheduled jobs and the clock. With --egress it starts a short-lived test pod with each service's labels and tries to reach the internet and the Kubernetes API. Every attempt must fail. The sso commands work as on a single host (see Kymoscope Site).

SMS and your own AI model

Both add-ons work as on a single host, with the same commands under k8s. A NetworkPolicy takes addresses, not names: when the gateway or model server has a name, add its address with --egress-cidr.

Shell
export KUBECTL="kubectl -n kymoscope"
site/bin/kymoscope-site k8s sms set --url 'https://sms.customer.local/send?to={to}&text={text}' --egress-cidr 10.1.2.3/32
site/bin/kymoscope-site k8s ai set --url https://ai.customer.local --model llama3.1 --egress-cidr 10.1.2.4/32
helm upgrade kymoscope site/helm/kymoscope-site -n kymoscope -f site/k8s-out/values.yaml -f my-values.yaml
site/bin/kymoscope-site k8s sms test +34600000000
site/bin/kymoscope-site k8s ai status
  • Each command updates the settings and applies them. helm upgrade then starts the add-on, with its one way out: that address and port only.
  • k8s sms off and k8s ai off, then helm upgrade, remove them again.
  • On Kubernetes, SMS goes through an HTTP gateway only. A GSM modem plugged into a server needs the single-host install.

Not on Kubernetes

  • More than one copy of a service. Each service runs once, as on the single host.
  • A database outside the cluster.
  • The database admin console (Studio).