Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Freeswitch on Google Container Engine

I'm trying to migrate a voip service using freeswitch on GKE (google cloud managed kubernetes cluster) in order to make the service scalable.

I have managed to migrate freeswitch to docker and get it to run. I require a high number of ports to be open to allow the necessary traffic. Kubernetes services do not seem to allow that many ports to be open.

I then tried using the following image and kubernetes configuration and still couldn't contact the freeswitch server. https://github.com/sip-li/docker-freeswitch

I've seen the following issue that seems to say that it isn't possible yet: https://github.com/kubernetes/kubernetes/issues/23864

But I am no expert so I might have misunderstood, therefore:

Is it possible to run a freeswitch server on GKE that is accessible through an external IP address? Or is it possible to have auto-scaling and auto-discovery of new pods by a SIP load balancer on GKE?

like image 665
Sebastien Avatar asked Aug 02 '17 13:08

Sebastien


1 Answers

This is possible. There is lecture on youtube, check this out.

They implement Asterisk in kubernetes, but freeswitch should be similar. Main problem is RTP, they solved it with RTP proxy (kamailio RTP proxy). They also implement balance loader using kamailio hosted on dedicated server (NOT inside kubernetes).

like image 138
Artyom Chernetsov Avatar answered Nov 16 '22 11:11

Artyom Chernetsov