Skip to content

Commit

Permalink
Upgrade cloud-sql-proxy from v1 to v2 (#1942)
Browse files Browse the repository at this point in the history
Summary: Upgrade cloud-sql-proxy from v1 to v2

Relevant Issues: N/A

Type of change: /kind dependency

Test Plan: Deployed new testing cloud and verified database access works
with v2 image

---------

Signed-off-by: Dom Del Nano <[email protected]>
  • Loading branch information
ddelnano authored Jun 6, 2024
1 parent 6436120 commit 9453e51
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
11 changes: 6 additions & 5 deletions k8s/cloud/prod/db_sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ spec:
containers:
- name: cloudsql-proxy
# yamllint disable-line rule:line-length
image: gcr.io/cloudsql-docker/gce-proxy:1.14@sha256:96689ad665bffc521fc9ac3cbcaa90f7d543a3fc6f1c84f81e4148a22ffa66e0
command: ["/cloud_sql_proxy",
"-instances=pixie-prod:us-west1:pixie-cloud-prod-db-pg13=tcp:5432",
"-ip_address_types=PRIVATE",
"-credential_file=/secrets/cloudsql/db_service_account.json"]
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.11.3@sha256:698174c37a5d4da797123a20bd5dc2b70fcaeae63c4cd634bdc9a70ce3282cbf
args:
- "--private-ip"
- "--auto-iam-authn"
- "--credentials-file=/secrets/cloudsql/db_service_account.json"
- "pixie-prod:us-west1:pixie-cloud-prod-db-pg13"
# [START cloudsql_security_context]
securityContext:
runAsUser: 2 # non-root user
Expand Down
11 changes: 6 additions & 5 deletions k8s/cloud/staging/db_sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ spec:
containers:
- name: cloudsql-proxy
# yamllint disable-line rule:line-length
image: gcr.io/cloudsql-docker/gce-proxy:1.14@sha256:96689ad665bffc521fc9ac3cbcaa90f7d543a3fc6f1c84f81e4148a22ffa66e0
command: ["/cloud_sql_proxy",
"-instances=pixie-prod:us-west1:pixie-cloud-staging-db-pg13=tcp:5432",
"-ip_address_types=PRIVATE",
"-credential_file=/secrets/cloudsql/db_service_account.json"]
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.11.3@sha256:698174c37a5d4da797123a20bd5dc2b70fcaeae63c4cd634bdc9a70ce3282cbf
args:
- "--private-ip"
- "--auto-iam-authn"
- "--credentials-file=/secrets/cloudsql/db_service_account.json"
- "pixie-prod:us-west1:pixie-cloud-staging-db-pg13"
# [START cloudsql_security_context]
securityContext:
runAsUser: 2 # non-root user
Expand Down
11 changes: 6 additions & 5 deletions k8s/cloud/testing/db_sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ spec:
containers:
- name: cloudsql-proxy
# yamllint disable-line rule:line-length
image: gcr.io/cloudsql-docker/gce-proxy:1.14@sha256:96689ad665bffc521fc9ac3cbcaa90f7d543a3fc6f1c84f81e4148a22ffa66e0
command: ["/cloud_sql_proxy",
"-instances=pl-pixies:us-west1:pixie-cloud-testing-db-pg13=tcp:5432",
"-ip_address_types=PRIVATE",
"-credential_file=/secrets/cloudsql/db_service_account.json"]
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.11.3@sha256:698174c37a5d4da797123a20bd5dc2b70fcaeae63c4cd634bdc9a70ce3282cbf
args:
- "--private-ip"
- "--auto-iam-authn"
- "--credentials-file=/secrets/cloudsql/db_service_account.json"
- "pl-pixies:us-west1:pixie-cloud-testing-db-pg13"
# [START cloudsql_security_context]
securityContext:
runAsUser: 2 # non-root user
Expand Down

0 comments on commit 9453e51

Please sign in to comment.