Im running a kubernetes (kubeflow + k8s) pod with a jupyter notebook and a docker service outside of the kubernetes server, im currently trying to connect to a sql service but it keeps getting ConnectionResetError, both firewall and docker are exposing the port needed but the k8s keeps not being able to connect, what could be the problem? (tell me if you need more details).
Thanks.
As mentioned in comments
From the istio perspective to make this work you would have to add ServiceEntry so istio injected pods could talk with external database.
There is an example in istio documentation.
Note that You may find MySQL can’t connect after installing Istio. This is because of PERMISSIVE mode, which does not work with MySQL. You may see error messages such as
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0.
There have two options to solve the problem.
1.Disable Mutual TLS.
2.Enable mutual TLS in STRICT mode.