Mysql cloud sql-proxy doesnt work with istio-proxy


#1

Hi,

I am running GKE 1.12 cluster
I am running istio helm install from version 1.1.0-rc.0
I am using sql-proxy of GCP to connect to cloud sql instances.
I am using either sidecar container sql-proxy or dedicated pod with sql-proxy version 1.13

I got a pod that connects to sql-proxy I got the messages

*Warning: mysqli::mysqli(): MySQL server has gone away in - on line 22

Warning: mysqli::mysqli(): Error while reading greeting packet. PID=177 in - on line 22

Warning: mysqli::mysqli(): (HY000/2006): MySQL server has gone away in - on line 22

MySQL Connection Error: (2006) MySQL server has gone away*


#2

Hi, did you added that sql-proxy to the permitted egress list ?

Regards, Pablo


#3

I am using

global.proxy.includeIPRanges

so I am bypassing everything external to the cluster.

thx!