putting livekit turn behind ALB
# ask-ai
g
putting livekit turn behind ALB
t
Thanks for reaching out, Jijo. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! If you're looking to set up LiveKit with a TURN server behind an Application Load Balancer (ALB), just a heads-up: ALB can’t directly handle TURN/TLS traffic because it needs raw TCP. But no worries, here’s a friendly step-by-step to get you going: 1. Use ALB for your main LiveKit service (handling WebSocket and HTTP traffic). You can set this up in the Helm chart with
loadBalancer.type: alb
and make sure your TLS certificates are stored in AWS Certificate Manager (ACM). 2. For the TURN server, you’ll want to use a separate Network Load Balancer (NLB) or a Kubernetes Service of type
LoadBalancer
. This setup is necessary since TURN/TLS traffic needs raw TCP support. 3. Turn on TURN in the Helm chart by setting
livekit.turn.enabled: true
, and don’t forget to configure the domain, TLS port, and Kubernetes secret for your TLS certificate. 4. Make sure your firewall rules allow UDP ports 50000–60000, TCP port 7881, and TCP port 443 (which maps to the TURN TLS port). If you want me to walk you through any part of this or have questions, just let me know—I’m here to help! Sources: Deploy to Kubernetes | LiveKit Docs | livekit-server/templates/deployment.yaml | Ports and firewall | LiveKit Docs | Deploying LiveKit | LiveKit Docs | config-sample.yaml