Skip to content
Discussion options

You must be logged in to vote

What I needed to do to make it work:

  1. Cloud SQL proxy as a sidecar container (not the built-in connector) to provide TCP on 127.0.0.1:5432
  2. gen2 execution environment for GCS FUSE support
  3. Container dependency ordering: Tolgee waits for the proxy to be ready before starting
  4. Extended startup probes for both the proxy and the Java app

What didn't work — Built-in Cloud SQL connector

Single container with Cloud SQL annotation

metadata:
  annotations:
    run.googleapis.com/cloudsql-instances: my-project:us-central1:my-db-instance
spec:
  containers:
  - name: tolgee-1
    env:
    - name: SPRING_DATASOURCE_URL
      # This fails — nothing listens on TCP 5432
      value: jdbc:postgresql://loca…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ehundt
Comment options

@JanCizmar
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JanCizmar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants