instrumentisto / coturn-docker-image

[Closed] Coturn TURN server Docker image
Other
191 stars 47 forks source link

CoTurn on Kubernetes #16

Closed Sudheerkumar closed 4 years ago

Sudheerkumar commented 4 years ago

Hi, Does this coturn or stun/turn server can be hosted in a cluster??

We did try to deploy on a Azure K8S cluster. We are facing issue while establishing the communication with the service running in the cluster. Any pointers?

WE have enabled host network as well

tyranron commented 4 years ago

@Sudheerkumar we use it successfully in our own bare metal Kubernetes cluster. The requirements are quite Kubernetes-unfriendly, though.

Sudheerkumar commented 4 years ago

Hi @tyranron thanks for your timely response. Do you know any tips for running the similar on Azure Kuberenetes service. We have all our infra on AKS today. your inputs are much helpful Thank you

tyranron commented 4 years ago

@Sudheerkumar I have no experience with AKS, unfortunately, but the tips I've described above should help. We'd use the same setup even if doesn't use Kubernetes, but a raw Docker (or Docker Compose). The way is obvious: give it host network and make sure any required ports are opened.

Sudheerkumar commented 4 years ago

Okay, I tried enabling hostNetwork:true and I mean at AKS level Microsoft official documentation says By default, AKS clusters have unrestricted outbound (egress) internet access. This level of network access allows nodes and services you run to access external resources as needed.

Meanwhile any projects you are aware of using coturn on AKS?

tyranron commented 4 years ago

@Sudheerkumar

By default, AKS clusters have unrestricted outbound (egress) internet access. This level of network access allows nodes and services you run to access external resources as needed.

You need lower the restrictions for inbound (ingress) access the way I've described above. Then, poke with the configuration.

Meanwhile any projects you are aware of using coturn on AKS?

Unfortunately, no.

Sudheerkumar commented 4 years ago

Thanks @tyranron, I will explore and get back to you.

andrewperry commented 4 years ago

Hi @tyranron thanks for your timely response. Do you know any tips for running the similar on Azure Kuberenetes service. We have all our infra on AKS today. your inputs are much helpful Thank you

This is probably what you were looking for: https://devblogs.microsoft.com/cse/2018/01/29/orchestrating-turn-servers-cloud-deployment/

with more detailed instructions here: https://github.com/anastasiia-zolochevska/coturn-to-azure-deployment

How did you go?