Sounds like perhaps kube-dns is not able to resolve the hostname that is 
managed by your DNS servers outside of the cluster/kube-dns. You may want 
to configure an upstream nameserver as mentioned 
in https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/, 
so that when pods try to resolve that hostname with their resolver 
(kube-dns), they can get answers from your non-kube DNS system.

On Tuesday, October 31, 2017 at 3:10:46 AM UTC-4, Parth Gandhi wrote:
>
> Hi Team,
>
> We have a .net core console app which uses a connection string for DB 
> operation. DB is on a different stand alone machine. i have created a 
> docker image using this application. When i run docker container on one of 
> my host the application runs perfectly fine. however when i use K8s and run 
> the application inside pod using deployment the application does not run. 
> When i change the hostname of the DB in the connection string to the IP 
> address in the appsettings.json file the application works fine inside the 
> pods. It seems as if it is not able to resolve hostname when running inside 
> the pod. 
>
> How do i make it run using the hostname and not IP.
>
> Thanks.
>

-- 
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.
  • [kubernetes-users]... Parth Gandhi
    • [kubernetes-u... 'Matt Brown' via Kubernetes user discussion and Q&A

Reply via email to