# livekit/livekit-helm architecture

> Architecture diagram of the GitHub repository livekit/livekit-helm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/livekit/livekit-helm
- Repository: https://github.com/livekit/livekit-helm

## Overview

1. **What this repository is**
   - This repo is a packaging-and-deployment repository for the LiveKit platform on Kubernetes.
   - It does not contain application runtime code; it contains Helm charts, environment samples, and release scripts that describe how LiveKit components are deployed.

2. **Top-level architecture**
   - The repository is split into three deployable chart families:
     - `livekit-server` for the core LiveKit server
     - `ingress` for the LiveKit ingress service
     - `egress` for the LiveKit egress service
   - These charts represent separate runtime boundaries and can be installed independently.

3. **Core LiveKit server chart**
   - `livekit-server/` is the primary chart and includes templates for:
     - `deployment`
     - `service`
     - `ingress`
     - `secret`
     - `configmap`
     - `hpa`
     - `serviceaccount`
     - `servicemonitor`
     - `turnloadbalancer`
     - `backendconfig`
   - This indicates the server is deployed as a Kubernetes workload with configuration externalized into ConfigMaps/Secrets, exposed through Services, and optionally autoscaled and monitored.

4. **Ingress service chart**
   - `ingress/` is a separate Helm chart with its own deployment, service, HPA, configmap, and service account.
   - It likely represents the media-ingestion side of the LiveKit ecosystem: a distinct service that runs alongside the server but is operationally independent.
   - The separation into its own chart means ingress can be scaled and configured separately from the core server.

5. **Egress service chart**
   - `egress/` is another standalone chart with a deployment, configmap, HPA, and service account.
   - Like ingress, it is isolated as a separate runtime unit, which suggests a distinct lifecycle and scaling profile from the LiveKit server.
   - The presence of an `egress-sample.yaml` at the repo root reinforces that egress is configured as a first-class deployment target.

6. **Configuration model**
   - Each chart has a `values.yaml`, and the repo includes sample values/manifests such as:
     - `server-sample.yaml`
     - `ingress-sample.yaml`
     - `egress-sample.yaml`
     - `gclb-sample.yaml`
     - `examples/*.yaml`
   - This points to a configuration-driven architecture: the same charts are adapted for different environments through values files rather than code changes.

7. **Cloud and Kubernetes integrations**
   - The chart set explicitly supports multiple Kubernetes/cloud-provider patterns:
     - GKE-specific `backendconfig`
     - `turnloadbalancer` for networking exposure
     - `servicemonitor` for Prometheus-style monitoring
     - `ingress` resources for HTTP routing where applicable
   - Example files for `eks`, `gke`, `gke-vpc-native`, and `do` show that the deployment model is intended to be portable across cloud providers, while still allowing provider-specific overlays.

8. **Network and exposure boundaries**
   - The server chart includes both `service` and `ingress` templates, which suggests the core service may be exposed through multiple Kubernetes network paths depending on the environment.
   - The `turnloadbalancer` template indicates a special network edge for TURN or similar realtime connectivity requirements, separate from normal HTTP ingress.

9. **Operational concerns**
   - HPA templates in all three charts show that scaling is expected to be driven by Kubernetes autoscaling rather than by an external orchestrator.
   - `serviceaccount` templates indicate the workloads may interact with cluster resources or cloud APIs using dedicated identities.
   - `servicemonitor` in the server chart suggests observability is built into the deployment model.

10. **Release and distribution pipeline**
   - The README states the charts are published to S3 and consumed via a Helm repository URL.
   - `deploy.sh`, `deploy-ingress.sh`, and `deploy-egress.sh` are release automation scripts for packaging and publishing the charts.
   - Publishing depends on the `helm-s3` plugin, so the repo’s release flow is: chart authoring -> Helm packaging -> S3-backed chart repo -> cluster installation.

11. **How an installed system looks**
   - In a deployed cluster, the main runtime boundary is Kubernetes:
     - LiveKit server pods handle the core service
     - ingress pods handle inbound media ingress workflows
     - egress pods handle outbound capture/export workflows
   - External clients and integrations connect into the cluster through Kubernetes Services, Ingresses, and load balancers, with provider-specific resources used where needed.

12. **What to draw in an architecture diagram**
   - Show the repo as a Helm-chart source tree feeding an S3-hosted Helm repository.
   - From the Helm repo, show installation into a Kubernetes cluster.
   - Inside the cluster, show three independently deployable workloads: `livekit-server`, `ingress`, and `egress`.
   - Around them, show Kubernetes primitives and integrations: ConfigMap/Secret, Service/Ingress, HPA, ServiceAccount, monitoring, and cloud-provider-specific networking objects.

Main entry points: [`livekit-server/Chart.yaml`](https://github.com/livekit/livekit-helm/blob/master/livekit-server/Chart.yaml) (Server chart), [`livekit-server/templates/deployment.yaml`](https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/deployment.yaml) (LiveKit server), [`ingress/Chart.yaml`](https://github.com/livekit/livekit-helm/blob/master/ingress/Chart.yaml) (Ingress chart), [`egress/Chart.yaml`](https://github.com/livekit/livekit-helm/blob/master/egress/Chart.yaml) (Egress chart)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo["Repository"]
  node_charts_root["Chart source<br/>helm source"]
  node_livekit_server_chart["Server chart<br/>helm chart<br/>[Chart.yaml]"]
  node_ingress_chart["Ingress chart<br/>helm chart<br/>[Chart.yaml]"]
  node_egress_chart["Egress chart<br/>helm chart<br/>[Chart.yaml]"]
  node_server_samples["Server sample<br/>values sample<br/>[server-sample.yaml]"]
  node_ingress_samples["Ingress sample<br/>values sample"]
  node_egress_samples["Egress sample<br/>values sample<br/>[egress-sample.yaml]"]
  node_examples_suite["Examples<br/>[server-eks.yaml]"]
end

subgraph group_release["Release pipeline"]
  node_deploy_script["Deploy script<br/>release script<br/>[deploy.sh]"]
  node_deploy_ingress_script["Ingress publish<br/>release script<br/>[deploy-ingress.sh]"]
  node_deploy_egress_script["Egress publish<br/>release script<br/>[deploy-egress.sh]"]
  node_helm_repo[("S3 Helm repo<br/>chart repository")]
end

subgraph group_cluster["Kubernetes cluster"]
  node_cluster_target{{"Kubernetes cluster<br/>deploy target"}}
  node_server_workload["LiveKit server<br/>k8s workload<br/>[deployment.yaml]"]
  node_ingress_workload["Ingress service<br/>k8s workload<br/>[deployment.yaml]"]
  node_egress_workload["Egress service<br/>k8s workload<br/>[deployment.yaml]"]
  node_server_exposure["Service edge<br/>k8s exposure<br/>[service.yaml]"]
  node_server_config["Config & secret<br/>k8s config<br/>[configmap.yaml]"]
  node_server_ops["Ops controls<br/>k8s ops<br/>[hpa.yaml]"]
  node_k8s_integrations["Cloud extras<br/>k8s integration<br/>[backendconfig.yaml]"]
end

node_charts_root -->|"contains"| node_livekit_server_chart
node_charts_root -->|"contains"| node_ingress_chart
node_charts_root -->|"contains"| node_egress_chart
node_livekit_server_chart -->|"renders"| node_server_workload
node_livekit_server_chart -->|"renders"| node_server_exposure
node_livekit_server_chart -->|"renders"| node_server_config
node_livekit_server_chart -->|"renders"| node_server_ops
node_livekit_server_chart -->|"renders"| node_k8s_integrations
node_ingress_chart -->|"renders"| node_ingress_workload
node_egress_chart -->|"renders"| node_egress_workload
node_server_samples -.->|"configures"| node_livekit_server_chart
node_ingress_samples -.->|"configures"| node_ingress_chart
node_egress_samples -.->|"configures"| node_egress_chart
node_examples_suite -.->|"overlays"| node_livekit_server_chart
node_deploy_script -->|"publishes"| node_helm_repo
node_deploy_ingress_script -->|"publishes"| node_helm_repo
node_deploy_egress_script -->|"publishes"| node_helm_repo
node_helm_repo -->|"installs into"| node_cluster_target
node_cluster_target -->|"runs"| node_server_workload
node_cluster_target -->|"runs"| node_ingress_workload
node_cluster_target -->|"runs"| node_egress_workload
node_server_workload -->|"exposes"| node_server_exposure
node_server_workload -->|"reads"| node_server_config
node_server_workload -->|"scales/exports"| node_server_ops
node_server_workload -->|"uses"| node_k8s_integrations

click node_livekit_server_chart "https://github.com/livekit/livekit-helm/blob/master/livekit-server/Chart.yaml"
click node_ingress_chart "https://github.com/livekit/livekit-helm/blob/master/ingress/Chart.yaml"
click node_egress_chart "https://github.com/livekit/livekit-helm/blob/master/egress/Chart.yaml"
click node_server_samples "https://github.com/livekit/livekit-helm/blob/master/server-sample.yaml"
click node_ingress_samples "https://github.com/livekit/livekit-helm/blob/master/ingress-sample.yaml"
click node_egress_samples "https://github.com/livekit/livekit-helm/blob/master/egress-sample.yaml"
click node_examples_suite "https://github.com/livekit/livekit-helm/blob/master/examples/server-eks.yaml"
click node_deploy_script "https://github.com/livekit/livekit-helm/blob/master/deploy.sh"
click node_deploy_ingress_script "https://github.com/livekit/livekit-helm/blob/master/deploy-ingress.sh"
click node_deploy_egress_script "https://github.com/livekit/livekit-helm/blob/master/deploy-egress.sh"
click node_server_workload "https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/deployment.yaml"
click node_ingress_workload "https://github.com/livekit/livekit-helm/blob/master/ingress/templates/deployment.yaml"
click node_egress_workload "https://github.com/livekit/livekit-helm/blob/master/egress/templates/deployment.yaml"
click node_server_exposure "https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/service.yaml"
click node_server_config "https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/configmap.yaml"
click node_server_ops "https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/hpa.yaml"
click node_k8s_integrations "https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/backendconfig.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_charts_root,node_livekit_server_chart,node_ingress_chart,node_egress_chart,node_server_samples,node_ingress_samples,node_egress_samples,node_examples_suite toneBlue
class node_deploy_script,node_deploy_ingress_script,node_deploy_egress_script,node_helm_repo toneAmber
class node_cluster_target,node_server_workload,node_ingress_workload,node_egress_workload,node_server_exposure,node_server_config,node_server_ops,node_k8s_integrations toneMint
```

## Components

### Repository

Helm chart sources, samples, and examples in the repo

- **Chart source**: helm source · Top-level packaging source for three independent chart families
- [Server chart](https://github.com/livekit/livekit-helm/blob/master/livekit-server/Chart.yaml): helm chart · Primary LiveKit server deployment chart · `livekit-server/Chart.yaml`
- [Ingress chart](https://github.com/livekit/livekit-helm/blob/master/ingress/Chart.yaml): helm chart · Standalone ingress deployment chart · `ingress/Chart.yaml`
- [Egress chart](https://github.com/livekit/livekit-helm/blob/master/egress/Chart.yaml): helm chart · Standalone egress deployment chart · `egress/Chart.yaml`
- [Server sample](https://github.com/livekit/livekit-helm/blob/master/server-sample.yaml): values sample · Example configuration for the core server chart · `server-sample.yaml`
- [Ingress sample](https://github.com/livekit/livekit-helm/blob/master/ingress-sample.yaml): values sample · Example configuration for ingress deployment · `ingress-sample.yaml`
- [Egress sample](https://github.com/livekit/livekit-helm/blob/master/egress-sample.yaml): values sample · Example configuration for egress deployment · `egress-sample.yaml`
- [Examples](https://github.com/livekit/livekit-helm/blob/master/examples/server-eks.yaml): provider examples · Cloud-provider specific example manifests and overlays · `examples/server-eks.yaml`

### Release pipeline

Scripts and published chart repository flow

- [Deploy script](https://github.com/livekit/livekit-helm/blob/master/deploy.sh): release script · Packages and publishes the main server chart · `deploy.sh`
- [Ingress publish](https://github.com/livekit/livekit-helm/blob/master/deploy-ingress.sh): release script · Packages and publishes the ingress chart · `deploy-ingress.sh`
- [Egress publish](https://github.com/livekit/livekit-helm/blob/master/deploy-egress.sh): release script · Packages and publishes the egress chart · `deploy-egress.sh`
- **S3 Helm repo**: chart repository · Published Helm repository backed by S3 and helm-s3

### Kubernetes cluster

Installed workloads and Kubernetes-facing runtime boundaries

- **Kubernetes cluster**: deploy target · Runtime boundary where the charts are installed
- [LiveKit server](https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/deployment.yaml): k8s workload · Core LiveKit runtime deployed as a Kubernetes workload · `livekit-server/templates/deployment.yaml`
- [Ingress service](https://github.com/livekit/livekit-helm/blob/master/ingress/templates/deployment.yaml): k8s workload · Media ingress runtime deployed separately · `ingress/templates/deployment.yaml`
- [Egress service](https://github.com/livekit/livekit-helm/blob/master/egress/templates/deployment.yaml): k8s workload · Recording/export runtime deployed separately · `egress/templates/deployment.yaml`
- [Service edge](https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/service.yaml): k8s exposure · Server service and ingress-based network exposure · `livekit-server/templates/service.yaml`
- [Config & secret](https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/configmap.yaml): k8s config · Server configuration and secret materialization · `livekit-server/templates/configmap.yaml`
- [Ops controls](https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/hpa.yaml): k8s ops · Autoscaling and observability for the server chart · `livekit-server/templates/hpa.yaml`
- [Cloud extras](https://github.com/livekit/livekit-helm/blob/master/livekit-server/templates/backendconfig.yaml): k8s integration · BackendConfig, TURN load balancer, and service monitor integrations · `livekit-server/templates/backendconfig.yaml`

## Connections

- Chart source → Server chart: contains · Repository source includes the main server chart
- Chart source → Ingress chart: contains · Repository source includes the ingress chart
- Chart source → Egress chart: contains · Repository source includes the egress chart
- Server chart → LiveKit server: renders · Server chart templates the core workload
- Server chart → Service edge: renders · Server chart defines service and ingress exposure
- Server chart → Config & secret: renders · Server chart externalizes config and secrets
- Server chart → Ops controls: renders · Server chart includes autoscaling and monitoring
- Server chart → Cloud extras: renders · Server chart adds provider-specific networking and monitoring objects
- Ingress chart → Ingress service: renders · Ingress chart templates the ingress deployment
- Egress chart → Egress service: renders · Egress chart templates the egress deployment
- Server sample → Server chart: configures · Sample values adapt the server chart for an environment
- Ingress sample → Ingress chart: configures · Sample values adapt the ingress chart for an environment
- Egress sample → Egress chart: configures · Sample values adapt the egress chart for an environment
- Examples → Server chart: overlays · Provider examples show alternate server deployment shapes
- Deploy script → S3 Helm repo: publishes · Release script packages and publishes the server chart
- Ingress publish → S3 Helm repo: publishes · Release script packages and publishes the ingress chart
- Egress publish → S3 Helm repo: publishes · Release script packages and publishes the egress chart
- S3 Helm repo → Kubernetes cluster: installs into · Published charts are consumed to install workloads into clusters
- Kubernetes cluster → LiveKit server: runs · Kubernetes cluster hosts the core server pods
- Kubernetes cluster → Ingress service: runs · Kubernetes cluster hosts the ingress pods
- Kubernetes cluster → Egress service: runs · Kubernetes cluster hosts the egress pods
- LiveKit server → Service edge: exposes · Server workload is reached through Kubernetes networking objects
- LiveKit server → Config & secret: reads · Server workload consumes config and secret data
- LiveKit server → Ops controls: scales/exports · Server workload is managed by HPA and monitoring hooks
- LiveKit server → Cloud extras: uses · Server workload integrates with cloud-specific Kubernetes resources
