Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docker-compose): Add postgres proxy for Google Cloud #854

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

nuclearcat
Copy link
Member

Add postgresql proxy for further kcidb-bridge development

@JenySadadia
Copy link
Collaborator

Receiving the below on staging:

Error: unknown flag: --credentials-file /home/kernelci/data/kcidb/kernelci-production-ci-kernelci.json
Usage:
  cloud-sql-proxy INSTANCE_CONNECTION_NAME... [flags]
  cloud-sql-proxy [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  wait        Wait for another Proxy process to start

@nuclearcat nuclearcat force-pushed the add-posgres-gcloud branch 2 times, most recently from 56daedc to b711242 Compare October 24, 2024 10:51
@nuclearcat
Copy link
Member Author

Yes, i noticed, it is quite confusing:

 Error: unknown flag: --credentials-file /home/kernelci/data/kcidb/kernelci-production-ci-kernelci.json
kernelci-pipeline-postgres-proxy | Usage:
kernelci-pipeline-postgres-proxy |   cloud-sql-proxy INSTANCE_CONNECTION_NAME... [flags]
kernelci-pipeline-postgres-proxy |   cloud-sql-proxy [command]
kernelci-pipeline-postgres-proxy | 
kernelci-pipeline-postgres-proxy | Available Commands:
kernelci-pipeline-postgres-proxy |   completion  Generate the autocompletion script for the specified shell
kernelci-pipeline-postgres-proxy |   help        Help about any command
kernelci-pipeline-postgres-proxy |   wait        Wait for another Proxy process to start
kernelci-pipeline-postgres-proxy | 
kernelci-pipeline-postgres-proxy | Flags:
kernelci-pipeline-postgres-proxy |   -a, --address string                       (*) Address to bind Cloud SQL instance listeners. (default "127.0.0.1")
kernelci-pipeline-postgres-proxy |       --admin-port string                    Port for localhost-only admin server (default "9091")
kernelci-pipeline-postgres-proxy |   -i, --auto-iam-authn                       (*) Enables Automatic IAM Authentication for all instances
kernelci-pipeline-postgres-proxy |       --auto-ip                              Supports legacy behavior of v1 and will try to connect to first IP
kernelci-pipeline-postgres-proxy |                                              address returned by the SQL Admin API. In most cases, this flag should not be used.
kernelci-pipeline-postgres-proxy |                                              Prefer default of public IP or use --private-ip instead.
kernelci-pipeline-postgres-proxy |       --config-file string                   Path to a TOML file containing configuration options.
kernelci-pipeline-postgres-proxy |   -c, --credentials-file string              Use service account key file as a source of IAM credentials.

And my cli is: --credentials-file /home/kernelci/data/kcidb/kernelci-production-ci-kernelci.json

While i looked at dashboard, correct cli parameters:

        command: /cloud_sql_proxy --dir=/cloudsql -instances=kernelci-production:us-central1:postgresql2=tcp:0.0.0.0:5432 -credential_file=/secrets/cloudsql/application_default_credentials.json

!!!

@nuclearcat nuclearcat force-pushed the add-posgres-gcloud branch 5 times, most recently from 7ce7831 to 2b5dfb7 Compare October 24, 2024 12:59
Add postgresql proxy for further kcidb-bridge development

Signed-off-by: Denys Fedoryshchenko <[email protected]>
@JenySadadia
Copy link
Collaborator

Thanks for fixing it.
It's working on staging.

@nuclearcat nuclearcat added this pull request to the merge queue Oct 25, 2024
Merged via the queue into kernelci:main with commit 2a50698 Oct 25, 2024
3 checks passed
@nuclearcat nuclearcat deleted the add-posgres-gcloud branch October 25, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants