Hello,
I’m encountering an issue while trying to connect my NiFi pod, deployed on a GKE (Google Kubernetes Engine) cluster, to a SQL database on GCP (Google Cloud Platform) using the Cloud SQL Proxy. I’ve taken the following steps:
- Created a user for the database.
- Whitelisted the IP address of my NiFi pod.
However, I’m getting the following error in the logs of the Cloud SQL Proxy:
arduinoCopy code
2023/09/05 15:57:17 couldn’t connect to “project:europe-west1:test-mysql”: dial tcp xx.xx.xx.xx:3307: connect: connection timed out 2023/09/05 16:02:52 New connection for “project:europe-west1:test-mysql”
Here’s a brief summary of my setup:
- NiFi pod on GKE.
- Cloud SQL database on GCP.
- Using the Cloud SQL Proxy to connect.
I’ve double-checked my configurations, and everything seems to be in order. However, I’m unable to establish a connection, and I’m receiving a “connection timed out” error.
i tried the connection with the public ip of the sql database without passing through the proxy and the connection established without problem.
Could you please assist me in resolving this issue? If you require more information or specific configurations, please let me know, and I’ll provide them while keeping sensitive information hidden.
Thank you for your help.
Sincerely,