I’ve been trying to figure this out as well. I haven’t yet found a way of publishing to kube-dns the pod IP of the running service.
I.e.: kamailio.whatever.local on ip 10.0.0.1 Rtpengine.whatever.local on ip 10.0.0.2 Appserver.whatever.local on 10.0.0.3
Assuming those are pod ips. Using services doesn’t work since the dns name will resolve to a k8s service ip and no the actual pod running the service.
Assigning IPs hardcoded doesn’t work either since it might change if the docker changes pod. I can have multiple modes on which a service can run, but only one service (kamailio, rtpengine, appserver, etc) will run on a given pod.
On Wed, 26 Aug 2020 at 15:18, Abdirahman A. Osman abdirahman.osm@gmail.com wrote:
Hi
Pavithra
You can use the kubedns/CoreDNS of the kubernetes cluster to resolve Internal DNS records of the pods.To assign DNS records for each POD you have to deploy a service and set the ClusterIP: none. and the dns record will be something like kamailio.kamalio-service.platform.svc.cluster.local which is the podname.servicename.namespace.svc.cluster.local
In the resolve.conf you will put the kubeDNS/CoreDNS IP as the nameserver. You can set this in the kubernetes manifest file
dnsPolicy: "None" dnsConfig: nameservers: - 10.34.0.1 (
kubeDNS/CoreDNS )
Abdirahman
On Tue, 25 Aug 2020 at 15:34, Sergey Safarov s.safarov@gmail.com wrote:
I am not k8s developer. So cannot provide detailed instructions. Just my point of view.
You can look https://kubernetes.io/docs/concepts/extend-kubernetes/operator/ https://www.magalix.com/blog/creating-custom-kubernetes-operators
On Tue, Aug 25, 2020 at 7:41 PM Pavithra Mohanraja < pavimohan3004@gmail.com> wrote:
Hi,
It would be helpful if you could elaborate what has to be done for kubernetes pods when you mention sip ingress
Thanks,
Pavithra
On Tue, Aug 25, 2020, 9:32 PM Sergey Safarov s.safarov@gmail.com wrote:
Lot of issues with static IP in Kubernetes.
Looks as need deploy "sip ingress" like "HTTP/HTTPS ingress" and then route calls to pods.
On Tue, Aug 25, 2020 at 4:40 PM Pavithra Mohanraja < pavimohan3004@gmail.com> wrote:
Hi,
I am configuring kamailio IMS as kubernetes pods . so each component will be configured as separate pod . In order to establish a connection between pods , I am configuring bind9 dns server in pcscf pod itself. Communication is happening via Pod IP address.
Is there any possibility to have the communication using cluster IP . If anybody is aware of kubernetes, Please help me in this regard.
I have my /etc/resolv.conf file in pods with nameserver <clusterIP> search <cluster-dns-domain-name>
Please help.
Thanks, Pavithra
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337