GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-proxy

Add "How the Cloud SQL Proxy Works" section to README

オープン
#1,841 コメント 5 件 リアクション 0 件 担当者 1 名 @kgala2 に割り当て済み GitHub で見る
priority: p2 type: docs type: feature request
主要言語
Go
スター
1.4k
フォーク
352
平均マージ
14時間 54分
マージ済み PR(30日)
5

説明

### Bug Description

The error message says port `3307`, but I have specified port `5432`.

The output from sql proxy
```
Listening on 127.0.0.1:5432
accepted connection from 127.0.0.1:58436
failed to connect to instance: Dial error: failed to dial (connection name = "xxx"): dial tcp x.x.x.x:3307: i/o timeout
```

### Example code (or command)

From my deployment
```
- image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.3.0
name: cloud-sql-proxy
args:
- "--private-ip"
- "--structured-logs"
- "--port=5432"
- "--credentials-file=/secrets/credentials.json"
- "xxx"
securityContext:
runAsNonRoot: true
volumeMounts:
- name: cloudsql-instance-credentials
mountPath: /secrets/
readOnly: true
```

### Stacktrace

_No response_

### Steps to reproduce?

1. Deploy it as a sidecar configured with port 5432, pointing at a server it cannot reach.
2. Connect to it.
3. Wait for the timeout
...

### Environment

See the example code for the environment

### Additional Details

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。