Self-Hosting LiveKit
Run the full stack on your infrastructure
Deploy and operate LiveKit server, agent workers, and supporting infrastructure on your own hardware. Covers when to self-host, Kubernetes deployment, agent worker scaling, monitoring, and security hardening.
What You Build
Production self-hosted LiveKit deployment with agent workers, monitoring, and security hardening.
Prerequisites
- →Course 5.2
Self-hosting architecture & decision framework
25mWhen to self-host (data sovereignty, latency, cost at scale) vs when Cloud is simpler. Full architecture: LiveKit server, Redis coordination, TURN servers, agent workers, and monitoring. Hardware sizing for target concurrent sessions.
Kubernetes deployment & server configuration
30mDeploy with Helm charts on Kubernetes. Configure livekit.yaml (signaling, media ports, TLS, TURN). Set up Redis for multi-node coordination with persistence and Sentinel HA. Network requirements for WebRTC (UDP 50000-60000).
Monitoring & security hardening
25mMonitor with Prometheus metrics (room count, participant count, packet loss, CPU). Build Grafana dashboards and alerting rules. Harden security with Kubernetes network policies, TLS on all paths, API key rotation, and CORS configuration.
Upgrades, backup & operations
20mRolling upgrades on Kubernetes with zero downtime. Back up Redis state, configs, and secrets. Recovery procedures for data loss, corruption, and full failure scenarios. Rollback with Helm.
What You Walk Away With
Ability to deploy and operate a self-hosted LiveKit installation with agent workers, Redis coordination, monitoring, security hardening, and upgrade procedures.