How livekit/livekit-helm works
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 Server chart · deployment.yaml LiveKit server · ingress/Chart.yaml Ingress chart · egress/Chart.yaml Egress chart
Components 20
Repository
Helm chart sources, samples, and examples in the repo
- Chart source · Top-level packaging source for three independent chart families
- Server chart · Primary LiveKit server deployment chart
livekit-server/Chart.yaml - Ingress chart · Standalone ingress deployment chart
ingress/Chart.yaml - Egress chart · Standalone egress deployment chart
egress/Chart.yaml - Server sample · Example configuration for the core server chart
server-sample.yaml - Ingress sample · Example configuration for ingress deployment
ingress-sample.yaml - Egress sample · Example configuration for egress deployment
egress-sample.yaml - Examples · Cloud-provider specific example manifests and overlays
examples/server-eks.yaml
Release pipeline
Scripts and published chart repository flow
- Deploy script · Packages and publishes the main server chart
deploy.sh - Ingress publish · Packages and publishes the ingress chart
deploy-ingress.sh - Egress publish · Packages and publishes the egress chart
deploy-egress.sh - S3 Helm repo · Published Helm repository backed by S3 and helm-s3
Kubernetes cluster
Installed workloads and Kubernetes-facing runtime boundaries
- Kubernetes cluster · Runtime boundary where the charts are installed
- LiveKit server · Core LiveKit runtime deployed as a Kubernetes workload
livekit-server/templates/deployment.yaml - Ingress service · Media ingress runtime deployed separately
ingress/templates/deployment.yaml - Egress service · Recording/export runtime deployed separately
egress/templates/deployment.yaml - Service edge · Server service and ingress-based network exposure
livekit-server/templates/service.yaml - Config & secret · Server configuration and secret materialization
livekit-server/templates/configmap.yaml - Ops controls · Autoscaling and observability for the server chart
livekit-server/templates/hpa.yaml - Cloud extras · BackendConfig, TURN load balancer, and service monitor integrations
livekit-server/templates/backendconfig.yaml
Connections 25
- 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