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

Reply via email to