@@ -61,11 +61,11 @@ spec:
6161 - name : HOST
6262 value : ' 0.0.0.0'
6363 - name : SERVICE_NAME
64- value : " your_service_name"
64+ value : ' your_service_name'
6565 - name : PORT
66- value : " 3000"
66+ value : ' 3000'
6767 - name : HASH
68- value : " 10 "
68+ value : ' 10 '
6969
7070 # JWT CONFIGURATION
7171 - name : JWT_KEY
@@ -206,27 +206,23 @@ spec:
206206 - name : cloud-sql-proxy
207207 # It is recommended to use the latest version of the Cloud SQL proxy
208208 # Make sure to update on a regular schedule!
209- image : gcr.io/cloudsql-docker/gce-proxy:1.28.0 # make sure the use the latest version
210- command :
211- - ' /cloud_sql_proxy'
212-
209+ image : gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.1.0
210+ args :
213211 # If connecting from a VPC-native GKE cluster, you can use the
214212 # following flag to have the proxy connect over private IP
215- # - "-ip_address_types=PRIVATE "
213+ # - "--private-ip "
216214
217- # By default, the proxy will write all logs to stderr. In some
218- # environments, anything printed to stderr is consider an error. To
219- # disable this behavior and write all logs to stdout (except errors
220- # which will still go to stderr), use:
221- - ' -log_debug_stdout'
215+ # Enable structured logging with LogEntry format:
216+ - ' --structured-logs'
222217
223- # Replace DB_PORT with the port the proxy should listen on
224218 # Defaults: MySQL: 3306, Postgres: 5432, SQLServer: 1433
225- - ' -instances=mysql-instance-name=tcp:3306'
219+ # Replace DB_PORT with the port the proxy should listen on
220+ - ' --port=3306'
221+ - ' cloud-sql-instances=instance-name'
226222
227223 # [START cloud_sql_proxy_k8s_volume_mount]
228224 # This flag specifies where the service account key can be found
229- - ' -credential_file =/var/secrets/google/proxy-to-another-gcp-project.json'
225+ - ' --credentials-file =/var/secrets/google/proxy-to-another-gcp-project.json'
230226 securityContext :
231227 # The default Cloud SQL proxy image runs as the
232228 # "nonroot" user and group (uid: 65532) by default.
0 commit comments