gray-magician-34629
11/28/2025, 12:18 PMtall-airline-16756
11/28/2025, 12:18 PMtall-airline-16756
11/28/2025, 12:18 PMtls_port = 443 if you won’t front TURN with a load balancer.
4) AWS target type & networking recommendations
• For EC2: register instances as targets for ALB and NLB. For Kubernetes: use NLB in instance (node) mode and run LiveKit pods with hostNetwork: true so pods can bind the media UDP/TCP ports. Run one LiveKit pod per node because of host port binding.
• Enable preserve client source IP on the NLB if you need original client IPs.
5) Security groups and firewall
• Allow inbound from ALB to instance TCP 7880.
• Allow inbound from NLB to instance on TCP 7881, UDP 3478, UDP port range (50000–60000), and any TURN ports you use.
• Ensure ALB and NLB security groups allow client traffic (e.g., 0.0.0.0/0 or restricted CIDR as appropriate).
6) DNS and routing
• Point your domain (e.g., livekit.yourdomain.com) to the ALB DNS name (Route 53 alias).
• If using multi-region or global setups, consider Route 53 latency routing or multi-region deployments and front with region-aware DNS.
7) Health checks and autoscaling
• Configure ALB health checks against LiveKit’s HTTP/WebSocket endpoint (port 7880).
• Configure NLB health checks for the media ports.
• When autoscaling or deploying on Kubernetes, ensure graceful termination (avoid killing pods with active sessions quickly).
If you want, tell me:
• Are you deploying on EC2 VMs or Kubernetes (EKS)?
• Which port range and TURN configuration you plan to use?
I’ll provide step‑by‑step AWS console/CloudFormation or Helm suggestions tailored to your setup.
Sources: Deploying LiveKit | LiveKit docs | Ports and firewall | LiveKit docs | Deploy to Kubernetes | LiveKit docs | Running LiveKit on AWS | Distributed Setup | LiveKit docs