GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-proxy

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

Abierto
#1,841 5 comentarios 0 reacciones 1 asignado Asignado a @kgala2 Ver en GitHub
priority: p2 type: docs type: feature request
Lenguaje dominante
Go
Estrellas
1.4k
Forks
352
Merge medio
14 h 54 min
PR fusionados (30 d)
5

Descripción

### 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_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.