How to send query to Cloud SQL for PostgreSQL #1662
-
|
Hello, We are using Cloud SQL for PostgreSQL and would like to do some scaling based on the number of data in a table. Normally, the connection to Cloud SQL is made by injecting a SQL Proxy as a sidecar and connecting to localhost (127.0.01). How can we achieve this in KEDA? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
Hi, I am not that much familiar with Cloud SQL, but IMHO it should work if you add the sidecar to the both KEDA Operator and Metrics Apiserver (you need to add it to the both Deployments). |
Beta Was this translation helpful? Give feedback.
-
|
I'm not familiar with github discussion, how do I mark this topic as answerd? |
Beta Was this translation helpful? Give feedback.
-
|
Checking in 4 years later to let people know that this solution still works. The following steps worked for me:
These steps allowed the MySQL scaler to query the Cloud SQL instance. |
Beta Was this translation helpful? Give feedback.
Hi, I am not that much familiar with Cloud SQL, but IMHO it should work if you add the sidecar to the both KEDA Operator and Metrics Apiserver (you need to add it to the both Deployments).
I am curious to hear the result :)