1 year ago
#332397

Madhuri Devidi
port forwarding kubernetes issue
I am running into a port forwarding issue with my service. The DB starts off via deployment YAML, and when my tomcat that is started manually tries to use it, it gets the connection but after 2 mins the DB connection is lost. Also, I can't log in to my DB server as well. How can I troubleshoot?
Below is my exact code:
LocalPortForward portForward = kClient.services().inNamespace(DEFAULT_NAMESPACE)
.withName(serviceName).portForward(port, port);
Thanks a lot for your help!
kubernetes
portforwarding
fabric8
0 Answers
Your Answer