What is the connection string you are using? You will need to use a URL that gets forwarded out of the pod. Localhost will go to the pods localhost for example.
You could do a test of things by using hostNetwork=true in the pod spec: https://kubernetes.io/docs/api-reference/v1.6/#podspec-v1-core On Fri, Oct 6, 2017 at 2:54 AM <sandeepnaidum1...@gmail.com> wrote: > Hi , > > > I am new to kubernets and trying to containerize my app > on K8's. I facing trouble to connect to DB which is running on host from > kubernetes pod. While the same is getting connected from docker container . > Please let me know what details you required to assist me and let me know > how to grab those details . > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. > -- CTO, CoreOS, Inc Tectonic is enterprise Kubernetes https://coreos.com/tectonic -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.