0

I've setup a kubernetes cluster in my network and a postgres database in same network. I am able to connect my java app to my postgres database if I run it over in a container or a VM. But some how when I deploy the same app in Kubernetes it is not able to connect to my database. All my services are in my private network and my cluster is a bare metal setup in my home lab using calico network.

I also tried ping my database ip from a busybox pod but that also fails.

Alan
  • 61
  • 2
  • 6
  • Please consider adding the output of `kubectl get netpol` , `kubectl get pod -owide` and `kubectl get node -owide`, without that its going to be a guessing game! – P.... Jul 19 '22 at 18:58
  • Also could you help us to share the output from: `kubectl describe svc your service-name` To review what ports are used to connect the Postgress DB – Leo Jul 21 '22 at 17:31

0 Answers0