Skip to content

Commit

Permalink
Fix SQL instance connections in k8s deployments (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Petkov <mpetkov@google.com>
  • Loading branch information
MartinPetkov and MartinPetkov committed Apr 20, 2020
1 parent ac668ee commit d474b81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WCP-WS/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:latest
command: ["/cloud_sql_proxy",
"-instances=heroes-hat-dev-data:us-central1:my-studies-1=tcp:3306",
"-instances=heroes-hat-dev-data:us-east1:my-studies-2=tcp:3306",
"-credential_file=/secrets/gcloud_key/key.json"]
volumeMounts:
- name: gcloud-key-volume
Expand Down
2 changes: 1 addition & 1 deletion WCP/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:latest
command: ["/cloud_sql_proxy",
"-instances=heroes-hat-dev-data:us-central1:my-studies-1=tcp:3306",
"-instances=heroes-hat-dev-data:us-east1:my-studies-2=tcp:3306",
"-credential_file=/secrets/gcloud_key/key.json"]
volumeMounts:
- name: gcloud-key-volume
Expand Down
2 changes: 1 addition & 1 deletion auth-server-ws/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
readOnly: true
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:latest
command: ['/cloud_sql_proxy', '-instances=heroes-hat-dev-data:us-central1:my-studies-1=tcp:3306', '-credential_file=/secrets/gcloud_key/key.json']
command: ['/cloud_sql_proxy', '-instances=heroes-hat-dev-data:us-east1:my-studies-2=tcp:3306', '-credential_file=/secrets/gcloud_key/key.json']
volumeMounts:
- name: gcloud-key-volume
mountPath: /secrets/gcloud_key
Expand Down
2 changes: 1 addition & 1 deletion response-server-ws/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:latest
command: ["/cloud_sql_proxy",
"-instances=heroes-hat-dev-data:us-central1:my-studies-1=tcp:3306",
"-instances=heroes-hat-dev-data:us-east1:my-studies-2=tcp:3306",
"-credential_file=/secrets/gcloud_key/key.json"]
volumeMounts:
- name: gcloud-key-volume
Expand Down
2 changes: 1 addition & 1 deletion user-registration-server-ws/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:latest
command: ["/cloud_sql_proxy",
"-instances=heroes-hat-dev-data:us-central1:my-studies-1=tcp:3306",
"-instances=heroes-hat-dev-data:us-east1:my-studies-2=tcp:3306",
"-credential_file=/secrets/gcloud_key/key.json"]
volumeMounts:
- name: gcloud-key-volume
Expand Down

0 comments on commit d474b81

Please sign in to comment.