I cannot get livekit to work on ecs using a networ...
# ask-ai
s
I cannot get livekit to work on ecs using a network load balancer. every time the agent comes up it has web socket connection failures. is it possible to get livekit working on ecs using a network load balancer?
t
Thanks for reaching out, Jason. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks so much for reaching out with your question! I want to share that, based on the current documentation, LiveKit doesn’t support direct deployment on Amazon ECS (Elastic Container Service). Instead, the recommended and supported way to deploy LiveKit is through Kubernetes, using a Helm chart tailored for platforms like Amazon EKS (Elastic Kubernetes Service), Google GKE, and Digital Ocean DOKS. If you’re deploying LiveKit on Kubernetes (such as EKS), you can definitely use an AWS Network Load Balancer (NLB). This is set up by configuring
loadBalancer.type: aws
in the Helm chart values, which tells Kubernetes to create an NLB using the
<http://service.beta.kubernetes.io/aws-load-balancer-type|service.beta.kubernetes.io/aws-load-balancer-type>: nlb
annotation. Since ECS isn’t mentioned in the deployment guides or configuration examples, deploying LiveKit directly on ECS with an NLB isn’t something that’s documented or confirmed at this time. If you’re exploring ECS, it might be worth considering whether running a Kubernetes cluster on EKS could be a better fit for LiveKit’s deployment needs. Sources: Deploy to Kubernetes | LiveKit Docs | Docs::Home | examples/server-do.yaml