@@ -61,11 +61,11 @@ spec:
61
61
- name : HOST
62
62
value : ' 0.0.0.0'
63
63
- name : SERVICE_NAME
64
- value : " your_service_name"
64
+ value : ' your_service_name'
65
65
- name : PORT
66
- value : " 3000"
66
+ value : ' 3000'
67
67
- name : HASH
68
- value : " 10 "
68
+ value : ' 10 '
69
69
70
70
# JWT CONFIGURATION
71
71
- name : JWT_KEY
@@ -206,27 +206,23 @@ spec:
206
206
- name : cloud-sql-proxy
207
207
# It is recommended to use the latest version of the Cloud SQL proxy
208
208
# 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 :
213
211
# If connecting from a VPC-native GKE cluster, you can use the
214
212
# following flag to have the proxy connect over private IP
215
- # - "-ip_address_types=PRIVATE "
213
+ # - "--private-ip "
216
214
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'
222
217
223
- # Replace DB_PORT with the port the proxy should listen on
224
218
# 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'
226
222
227
223
# [START cloud_sql_proxy_k8s_volume_mount]
228
224
# 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'
230
226
securityContext :
231
227
# The default Cloud SQL proxy image runs as the
232
228
# "nonroot" user and group (uid: 65532) by default.
0 commit comments