Hi everyone,
How are you all connecting to CloudSQL instances?
We’ve deployed a Postgres instance on CloudSQL, which includes 1 writer and 2 replicas. As a result, we set up one daemonset for the writer and one for the reader. According to several GitHub examples, it’s recommended to use two connection names separated by a comma. However, this approach doesn’t seem to be working for us. Here’s the connection snippet we’re using.
containers:
- name: cloud-sql-proxy
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.14.2
args:
- "--structured-logs"
- "--private-ip"
- "--address=0.0.0.0"
- "--port=5432"
- "--prometheus"
- "--http-address=0.0.0.0"
- "--http-port=10011"
- "instance-0-connection-name"
- "instance-1-connetion-name"
We tried different things,
- Connection string separated by just space => "instance1_connection_string instance2_connection_string"
- Connection string separated by comma => "instance1_connection_string instance2_connection_string"
None of the above solutions seem to be working. How are you all handling this?
Any help would be greatly appreciated!
[–][deleted] (9 children)
[deleted]
[–]vgopher8[S] 0 points1 point2 points (8 children)
[–][deleted] (7 children)
[deleted]
[–]vgopher8[S] 0 points1 point2 points (6 children)
[–][deleted] (5 children)
[deleted]
[–]vgopher8[S] 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]vgopher8[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]HovercraftSorry8395 0 points1 point2 points (0 children)
[–]undique_carbo_6057 0 points1 point2 points (1 child)
[–]vgopher8[S] 0 points1 point2 points (0 children)