Hi Hossein,
What do you mean by ‘some issue in host-mode’?
We use both Kamailio and RTPEngine in Kubernetes clusters with Multus CNI to manage both private and public interfaces and we have not encountered any issues so far with this configuration.
Kind regards
Julien
De : sr-users <sr-users-bounces@lists.kamailio.org> au nom de H Yavari <hyavari@rocketmail.com>
Répondre à : "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org>
Date : mercredi 3 mars 2021 à 20:05
À : "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org>
Objet : [SR-Users] Kamailio and Asterisk in K8s
Hi to all,
I am going to run multiple Asterisk instances (Pods) in my Kubernetes cluster. I have a stateless Kamailio sip proxy also. We know that K8s can't handle port range for its services, So we have to use host network for Asterisk deployment. But in this mode, Asterisk pods can't connect to other pods through local IPs and you have to add a second network interface to your pods. One solution is using something like Multus that provides multi-home pods. But it has some issue in host-mode!
Also, Using media proxy like RTPEngine in front of Asterisk instances doesn't make a change. You have to run RTPEngine in the host mode or just run it on a VM with multiple NIC.
What is the practical solution for this scenario?
Thank you.
BR
Hossein