<div><div dir="auto">I’ve been trying to figure this out as well.</div><div dir="auto">I haven’t yet found a way of publishing to kube-dns the pod IP of the running service. </div><div dir="auto"><br></div><div dir="auto">I.e.: </div><div dir="auto">kamailio.whatever.local on ip 10.0.0.1</div><div dir="auto">Rtpengine.whatever.local on ip 10.0.0.2</div><div dir="auto">Appserver.whatever.local on 10.0.0.3</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 26 Aug 2020 at 15:18, Abdirahman A. Osman <<a href="mailto:abdirahman.osm@gmail.com">abdirahman.osm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div>Hi <br><br>Pavithra<br><br><br><br><br><br><br><br></div><div><br></div><div>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</div><div></div><div>which is the podname.servicename.namespace.svc.cluster.local</div><div><br></div><div>In the resolve.conf you will put the kubeDNS/CoreDNS IP as the nameserver.  You can set this in the kubernetes manifest file <br></div><div><br></div><div>      dnsPolicy: "None"<br>      dnsConfig:<br>        nameservers:<br>          - 10.34.0.1 (<br><br> kubeDNS/CoreDNS ) <br><br><br><br></div></div><div dir="ltr"><div></div><div><br></div><div dir="ltr"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr">Abdirahman<div><div><br></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 25 Aug 2020 at 15:34, Sergey Safarov <<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">I am not k8s developer.<br>So cannot provide detailed instructions. Just my point of view.<br><br>You can look<br><a href="https://kubernetes.io/docs/concepts/extend-kubernetes/operator/" target="_blank">https://kubernetes.io/docs/concepts/extend-kubernetes/operator/</a><br><a href="https://www.magalix.com/blog/creating-custom-kubernetes-operators" target="_blank">https://www.magalix.com/blog/creating-custom-kubernetes-operators</a><br><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 25, 2020 at 7:41 PM Pavithra Mohanraja <<a href="mailto:pavimohan3004@gmail.com" target="_blank">pavimohan3004@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">It would be helpful if you could elaborate what has to be done for kubernetes pods when you mention sip ingress</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br><br>Pavithra<br><br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 25, 2020, 9:32 PM Sergey Safarov <<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">Lot of issues with static IP in Kubernetes.<br><br><div>Looks as need deploy "sip ingress" like "HTTP/HTTPS ingress" and then route calls to pods.<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 25, 2020 at 4:40 PM Pavithra Mohanraja <<a href="mailto:pavimohan3004@gmail.com" rel="noreferrer" target="_blank">pavimohan3004@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">Hi,<br><div><br></div><div>I am configuring kamailio IMS as kubernetes pods .</div><div>so each component will be configured as separate pod .</div><div>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.</div><div><br></div><div>Is there any possibility to have the communication using cluster IP . If anybody is aware of kubernetes, Please help me in this regard.</div><div><br></div><div>I have my /etc/resolv.conf file in pods with</div><div>nameserver <clusterIP></div><div>search <cluster-dns-domain-name></div><div><br></div><div>Please help.</div><div><br></div><div><br></div><div>Thanks,</div><div>Pavithra</div></div><br><br>_______________________________________________<br><br><br>Kamailio (SER) - Users Mailing List<br><br><br><a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br></blockquote></div><br><br>_______________________________________________<br><br><br>Kamailio (SER) - Users Mailing List<br><br><br><a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br></blockquote></div><br><br>_______________________________________________<br><br><br>Kamailio (SER) - Users Mailing List<br><br><br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br></blockquote></div><br><br>_______________________________________________<br><br><br>Kamailio (SER) - Users Mailing List<br><br><br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br></blockquote></div></div><br><br>_______________________________________________<br><br>Kamailio (SER) - Users Mailing List<br><br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>