Unable to connect to mysql in Istio environment

2/27/2020

We have configured the Kubernetes cluster on bare-metal server with v1.15.1 and Istio-1.4.0 (demo) with mTLS enabled. And our mysql server is outside the K8s cluster on Azure VM's. Now when we inject istio-proxy while deploying the application we are unable to connect to mysql server via jdbc and also tried my mysql client. But when remove the istio-proxy by re-deploying we are able to connect instantly with out any issue.

When through many blogs wrt istio and mysql, tried with removing the default mesh policy but tht didnt work. The case in istio faq's is when the mysql is in k8s cluster with istio injected.

-- Ankit Saxena
istio
kubernetes

2 Answers

3/12/2020

Serviceentry and destionation rule does the work form my case

-- Ankit Saxena
Source: StackOverflow

2/28/2020

You can configure auto-mtls for istio by configuring values.global.mtls.auto=true (ie it uses mtls when possible and falls back for other connections

https://istio.io/docs/tasks/security/authentication/auto-mtls/

-- Tummala Dhanvi
Source: StackOverflow