By Stan Reshetnyk, CTO, Trembit (protocol-level WebRTC, SIP and media-server engineering) · Last updated 19 November 2026
Self-hosting LiveKit on Kubernetes means running LiveKit’s open-source media server, and the services around it, on your own cluster with LiveKit’s Helm chart. The chart supports GKE, EKS and DOKS, but the cluster must provide what a stateless web service rarely needs: host networking, one server pod per node, media ports exposed on every node, a cluster that is neither private nor serverless, Redis beyond one node, and separate egress, ingress and agent deployments. Scale-down is a drain, not a kill, so upgrades hold nodes until sessions end. For the business, it means owning a media system: someone is paged for it and schedules upgrades around live calls. This page sets out what it takes, and flags where we go beyond LiveKit’s documentation.
Key takeaways
- LiveKit’s Kubernetes guide requires host networking, which means one server pod per node, and LiveKit does not support private or serverless clusters.
- More than one node means Redis. Each room lives on one node; LiveKit’s own comparison puts a self-hosted room at up to about 3,000 users.
- Scale-down is a drain with a 5-hour grace period in the chart, so in our reading every rollout keeps old nodes busy until their rooms end, and each replacement pod needs a spare node.
- Egress, ingress and agents are separate deployments with their own CPU sizing and autoscaling signals.
- In our reading, Kubernetes pays off when you already run a platform team and a public cluster and need several nodes. Otherwise a VM or LiveKit Cloud is less to operate.
Not an engineer? Read the takeaways, the cost lines, the VM, Kubernetes or Cloud decision and what Trembit has built. Engineers: start at what the deployment consists of.
What does a self-hosted LiveKit deployment actually consist of?
The server is one of several things you run: server pods, Redis and a CA-signed certificate for the primary domain at minimum, a second one if you enable TURN/TLS, and a deployment each for recording, stream ingest and agents.

| Component | How it runs | What it scales on |
|---|---|---|
| LiveKit server | Helm chart; host networking; one pod per node | Add nodes; remove them only by draining |
| Redis | You provide it (a chart prerequisite) | Your choice of topology |
| Embedded TURN | Inside the server; off in the chart by default | With the server |
| Egress (recording, export) | Separate service, linked to the server through Redis queues | livekit_egress_available |
| Ingress (RTMP, WHIP) | Separate service; TCP load balancer for more than one worker | livekit_ingress_available |
| Agents | Your own containers | Agent load, ahead of load_threshold |
LiveKit’s prerequisites for an autoscaling cluster also include “a Kubernetes cluster on AWS, GCloud, or DO”. SIP is a separate service, outside this page.
Why does LiveKit’s Kubernetes guide demand host networking and one pod per node?
Because WebRTC media must reach the server on known ports at an address the server knows, and, in our reading, an overlay pod network hides both. LiveKit’s Kubernetes guide states it: “LiveKit pods requires direct access to the network with host networking. This means that the rtc.udp/tcp ports that are open on those nodes are directly handled by LiveKit server.” Because the ports belong to the node, “we’ll be limited to one LiveKit pod per node.” Other workloads can share the node.
LiveKit’s deployment guide states the underlying difficulty: “WebRTC servers can be tricky to deploy because of their use of UDP ports and having to know their own public IP address.” The details sit in LiveKit’s sample server config and ports page:
- Ports. The ICE/UDP range (50000–60000 by default) is advertised as host candidates, and “each participant in the room will use two ports”. The TCP fallback, 7881, “cannot be behind load balancer or TLS, and must be exposed on the node”.
- Address.
use_external_ip“attempts to discover the host’s public IP via STUN”, andnode_ipoverrides it when STUN gets it wrong. - Cluster type. “LiveKit does not support deployment to serverless and/or private clusters. Private clusters have additional layers of NAT that make it unsuitable for WebRTC traffic.”
The livekit-helm chart encodes this with podHostNetwork: true and a resources comment: “Due to port restrictions, you can run only one instance of LiveKit per physical node. Because of that, we recommend giving it plenty of resources to work with”. Our guide to scaling FreeSWITCH explains why RTP and overlay networks don’t mix in general.
The chart also opts the pod out of Istio and Linkerd sidecar injection. Istio’s own injection docs say injection “will be ignored for pods that are on the host network” anyway.
Does host networking collide with Pod Security Standards?
In our reading, yes, on a hardened cluster. Kubernetes’ Pod Security Standards say under Baseline: “Sharing the host namespaces must be disallowed.” The restricted fields include spec.hostNetwork, with only “Undefined/nil” and “false” allowed, and the chart’s default is true. The conclusion is ours, not LiveKit’s: a namespace enforcing Baseline or Restricted through Pod Security Admission should reject the server pod unless it is exempted. Test that on staging with your production admission policy.
Is there a way around host networking?
Not on LiveKit’s documented path. STUNner (l7mp), an open-source TURN gateway for Kubernetes, publishes a LiveKit example in which “media servers can be deployed into ordinary Kubernetes pods and run over a private IP network”. That is a third-party design that LiveKit’s documentation does not cover; if you take it, you own the result.
Which traffic can go through a load balancer, and which cannot?
Signalling can; media cannot. The API and WebSocket port sits behind a load balancer that terminates TLS, TURN over TLS can sit behind a layer-4 balancer, and media goes straight to the node. Signalling balances freely because, per LiveKit’s ports page, “LiveKit APIs are homogenous: any client could connect to any backend instance, regardless of the room they are in.”
| Port | Traffic | Behind a load balancer? |
|---|---|---|
| 7880 | API and WebSocket (TCP) | Yes, one that terminates TLS |
| 50000–60000 | ICE/UDP media, two ports per participant | No, exposed on the node |
| 7881 | ICE/TCP fallback when UDP is blocked | No, exposed on the node |
| 7882 | ICE/UDP mux (optional; replaces the range) | No, exposed on the node |
| 5349 | TURN/TLS (optional) | Yes, layer 4, in a distributed setup; 443 without a balancer |
| 3478 | TURN/UDP (optional; also serves STUN) | Not specified |
TLS is yours: “Termination of TLS/SSL is left as a responsibility of the Ingress.” The chart configures it for GKE and ALB; on EKS, the AWS Load Balancer Controller “needs to be installed separately.” TURN/TLS needs its own certificate even when ACM covers the primary domain, and “self-signed certs do not work here.”

How does LiveKit’s embedded TURN fit?
It runs inside the server, and the chart ships it off (livekit.turn.enabled: false, even with turnLoadbalancer.enable: true), so enabling it is a deliberate step with “a separate TURN domain and SSL cert”. TURN/UDP defaults to 3478, “recommended to 443 if not running HTTP3/QUIC server” per the config sample. Behind a layer-4 balancer that terminates TLS, set external_tls: true, and proxy_protocol: true if it “does not preserve the client address”. Relay sizing is outside this page.
How does multi-node LiveKit route rooms, and what is Redis doing?
Redis is the shared store and message bus, and each room is placed on one node and stays there. LiveKit: “In distributed mode, Redis is required as shared data store and message bus.” The config sample makes Redis the switch (“when redis is set, LiveKit will automatically operate in a fully distributed fashion”), and the deployment guide says “redis is recommended for production deploys” even on one node.
Nodes report load (“each node periodically reports their stats to Redis”), and a selector (any by default) places each new room. A client whose signalling lands elsewhere is still served: “That instance then acts as a signaling bridge, proxying messages between the node where the room is hosted and the client.”
The ceiling: “for now, a room must fit on a single node.” LiveKit’s comparison of its own offerings lists self-hosted as a “Single-home SFU” with “Up to ~3,000” users per room, and Cloud as a “Global mesh SFU” with “No limit”. That is a vendor’s comparison of its own products, not a measurement.
The distributed-mode page covers draining on a termination signal; it does not describe what happens to rooms when a node or Redis fails, so test both before production.
How do you autoscale and upgrade LiveKit when rooms are stateful?
You add capacity freely but remove a pod only by draining it, so plan around scale-down and rollouts, not scale-up. On SIGTERM, SIGINT or SIGQUIT with participants connected, the server “will put itself into draining mode”: active rooms keep running and admit new participants, while those “trying to join new rooms” are rejected. “When all participants have disconnected, the server will complete draining and shut down.”

The chart ships replicaCount: 1 and autoscaling enabled: false (when on: minReplicas: 1, maxReplicas: 5, targetCPUUtilizationPercentage: 60). It sets terminationGracePeriodSeconds: 18000, “5 hours” in the docs, because terminating pods in an upgrade “could be extremely disruptive if there are active sessions running on those pods.”
Three consequences, ours rather than LiveKit’s:
- The autoscaler is really a node autoscaler. Every new replica needs a new node, so pod autoscaling helps only if your node pool grows before the rooms arrive.
- A rollout needs spare nodes. A draining pod keeps its node and ports for up to the grace period, and the chart declares the TCP media port as a
hostPort, so the replacement must land on another node. During a rollout you pay for the old fleet and the new; if the node pool cannot grow, replacements sit Pending. Test the chart’s update strategy on staging. - A config change is a drain too. Kubernetes “triggers a restart only when the pod itself has changed, but does not when the changes took place in the ConfigMap”, and the restart you trigger drains every pod.
The drain is not a guarantee. Kubernetes tracks the grace period “before the Pod is allowed to be forcefully killed”, so a session still running at five hours is cut off. Node upgrades can cut it sooner: GKE’s surge upgrades respect graceful termination “for up to one hour”, then evict. Check your provider’s limits against the 5 hours. In our reading, a node that crashes never drains at all.
Pin versions and stage upgrades. LiveKit shipped seven server releases between 31 July and 25 October 2026 (v1.13.5 to v1.13.11). v1.13.9 came a day after v1.13.8 to undo a change that “caused egress start failures”.
Pin the server image yourself. On 19 November 2026, the Helm repository the docs tell you to add (helm.livekit.io) listed chart 1.9.0 (server v1.9.0) as newest, in an index generated in June 2025, while GitHub had chart 1.11.0 and server v1.13.11. A chart from that index defaults to its own server version unless you set the image tag, so set it.
How do egress, ingress and agents run next to the server?
Each is its own deployment with its own sizing, scaling signal and shutdown behaviour. The figures are LiveKit’s.
| Service | Sizing | Scaling signal | Watch for |
|---|---|---|---|
| Egress | At least 4 CPUs and 4 GB; RoomComposite uses 2–6 CPUs | livekit_egress_available | “Each instance can record one room at a time” |
| Ingress (RTMP 1935, WHIP 8080) | At least 4 CPUs and 4 GB; transcoding uses 2–6 cores | livekit_ingress_available | TCP balancer for several workers; UDP 7885 for WHIP |
| Agents | Your workload | Agent load; scale up before load_threshold (default 0.7; LiveKit’s example: 0.5) | A “10+ minute grace period” for voice AI |
Egress and ingress reach the server through Redis queues. LiveKit prefers its availability metric to average CPU “because requests are long-running and are resource intensive”; scaling on it needs the Prometheus adapter. In our reading, UDP 7885 on the ingress worker is the server’s reachability problem again. Agent servers stop taking jobs on SIGTERM and finish running ones, within terminationGracePeriodSeconds. For the framework itself, see Pipecat versus LiveKit Agents.
What should you monitor, and how much capacity does a node really have?
CPU and bandwidth bind a node, so watch those first, then availability metrics and drains. LiveKit: “The scalability of LiveKit is bound by CPU and bandwidth. We recommend running production setups on 10Gbps ethernet or faster.” It favours compute-optimized instances.
Node capacity is something you measure. LiveKit’s own load test ran on one 16-core Google Cloud instance (c2-standard-16) with 720p video, and the page shows no test date:
| Room type (LiveKit’s test) | Publishers | Subscribers | CPU |
|---|---|---|---|
| Large audio rooms | 10 | 3,000 | 80% |
| Large meeting | 150 | 150 | 85% |
| Livestreaming | 1 | 3,000 | 92% |
LiveKit adds that “it can be difficult to understand the capacity of the SFU for a specific application” and offers lk load-test. Run it with your room shapes on the instance type you will buy.
Check your Prometheus key. Metrics are exposed on port 6789 once enabled, but LiveKit shows the setting two ways: the deployment guide uses a flat prometheus_port: 6789, the config sample a nested prometheus: block with port: 6789. The server’s config code marks the flat key “deprecated”, v1.13.8 moved the sample to the nested form, and the chart’s deployment template still reads a flat prometheus_port value to open the metrics port. Confirm /metrics answers after each upgrade. Egress and ingress set their own prometheus_port in their own configs.
The chart ships serviceMonitor.create: false, so nothing scrapes the server until you enable it. Our additions: node CPU and network throughput, pods stuck in Terminating, and Redis health.
What does it cost to run, in lines and in people?
The server is free to license (Apache 2.0); you pay for infrastructure and the people who run it. The table is ours, built from LiveKit’s sizing statements; prices come from your providers.
| Cost line | What drives it | LiveKit’s basis |
|---|---|---|
| Server nodes | One per pod; peak rooms and participants | Compute-optimized, 10 Gbps or faster |
| Media bandwidth | Participants, tracks, bitrates | Bound by CPU and bandwidth |
| Spare nodes for drains (ours) | Rollouts and scale-down wait on sessions | 5-hour grace period |
| Redis | Required beyond one node | Shared store and message bus |
| Load balancers and certificates | Signalling, ingress; a second CA-signed domain if TURN/TLS is on | Ports page; deployment guide |
| Egress, ingress and agent workers | 4 CPUs and 4 GB minimum per egress or ingress; one room per egress | Egress, ingress and agent docs |
| Observability | Prometheus, adapter, dashboards | serviceMonitor off by default |
People have no number here. Before pricing nodes, name who:
- owns the cluster, its admission policy and the host-network exemption;
- is paged when a pod sits in Terminating for hours, and decides whether to force it;
- reads release notes, tests upgrades on staging and schedules rollouts around live sessions;
- owns Redis, both certificates and the TURN path.
To compare with Cloud, price these lines monthly against Cloud’s meter at your volume. We cover how LiveKit Cloud’s meter works for 1:1 video, and the general cost drivers in our guide to choosing between LiveKit and mediasoup.
Want a second opinion on these lines for your stack? Our WebRTC architecture and infrastructure review starts with a free 30-minute call: bring peak concurrency, minutes per month and where the cluster will live. No deck, no pitch.
Is Kubernetes the right place to run LiveKit, or should you use a VM or LiveKit Cloud?
In our reading, take the rung that is least for your team to operate (cash cost depends on your volume): LiveKit Cloud if you don’t want to own the media plane, one VM if one node covers your peak, several VMs with Redis when you need more nodes but no cluster, and Kubernetes when you already run a platform team and a public cluster. The ladder is ours: LiveKit’s VM guide does not compare itself with Kubernetes, and no page we read ranks the options.

The VM path “utilizes Docker Compose and Caddy”, Caddy provisions certificates, and upgrading means you “edit the docker compose file”. There is no admission policy to negotiate, but one VM is one node: its ceiling is yours. The server drains on a VM too, but Compose’s stop_grace_period defaults to 10 seconds, so raise it or a restart ends every session. For several instances, the deployment guide says “you can place a layer 4 load balancer in front of the TCP port”. Cloud, by LiveKit’s own description, adds a global mesh and a “99.99%” uptime target; you give up control of the infrastructure and pay the meter.
| Your situation | First choice | Verify first | When it stops fitting |
|---|---|---|---|
| No team to own the media plane | LiveKit Cloud | What does Cloud’s meter cost at our volume? | Media must run on infrastructure you control |
| One node covers peak | Single VM | Has a load test on the instance we’ll buy shown that? | Peak outgrows the node, or upgrade downtime hurts |
| Several nodes, no cluster team (ours) | Several VMs, Redis, layer-4 balancer | Who runs Redis and the upgrade order? | Nobody owns drains, or you need autoscaling |
| Platform team, public cluster | Kubernetes | Will our cluster’s security policy admit a host-network pod? | The cluster must be private or serverless, or nobody owns drains |
| Current setup works | Stay put | Will next year’s peak still fit? | A limit in this guide starts to bind |
If the question is whether to build on LiveKit at all, start with our guide to build versus buy for real-time video.
What has Trembit built, and where can we help?
The boundary first: none of our published case studies is a LiveKit project, and none shows LiveKit running on Kubernetes. This guide rests on LiveKit’s documentation, read on 19 November 2026, and on our work with other self-hosted media servers; where a statement is our reading, we say so.
We build and deploy self-hosted media servers, and two deliveries match the operating problems above:
- Observability on a self-hosted media server. For a government agency, we built a video platform on Janus that runs on government-controlled infrastructure: Prometheus collects media-server health, connection quality, CPU, memory and session metrics, Grafana carries dashboards and alerting, and Elasticsearch holds searchable logs.
- Scale-up planning for a self-hosted SFU. For an education technology company, we built a webinar platform on self-hosted Jitsi Meet on AWS, with auto-scaling that pre-warms capacity before scheduled events and scales out when audiences grow unexpectedly.
We have also engineered Kubernetes with auto-scaling on AWS for EmanoFlow, a remote uroflowmetry app whose load spikes when patients record at home. That is a data pipeline, not a media server.
A review starts from your traffic shape, cluster and the questions in the decision table. We can also build the product around the media server through custom WebRTC development, or take over a misbehaving deployment.
FAQ
Does LiveKit run on Kubernetes? Yes. LiveKit’s Helm chart supports GKE, EKS and DOKS, with host networking, one server pod per node, Redis beyond one node, and a CA-signed certificate for the primary domain (and a second for TURN/TLS, if enabled).
Can you run LiveKit in a private cluster or without host networking? Not on LiveKit’s documented path: LiveKit doesn’t support private or serverless clusters, citing their extra NAT layers. Third-party designs such as STUNner run it in ordinary pods, outside LiveKit’s documentation.
How many LiveKit pods can run on one node? One server pod, because with host networking the media ports belong to the node. Other workloads can share it.
Does self-hosted LiveKit need Redis? Beyond one node, yes. A single node runs without it, since setting Redis switches the server into distributed mode, but LiveKit recommends Redis for production anyway.
Can you autoscale LiveKit? Upward, yes. The chart’s autoscaler is off by default, each new pod needs a new node, and scale-down waits up to five hours for rooms to drain.
When should you use LiveKit Cloud instead of self-hosting? When nobody will own the media plane, drains and upgrades, or, per LiveKit’s own comparison, one room must outgrow a single node. Otherwise see the decision table.
Planning to self-host LiveKit, or running a cluster that misbehaves? Book a free 30-minute call with a Trembit WebRTC engineer. Bring your cluster type, peak concurrent participants, which of egress, ingress and agents you need, and who would carry the pager, and we’ll pressure-test the plan in an architecture and infrastructure review. If the cluster is live and failing, that is rescue work we take on. No deck, no pitch.