Last active
November 1, 2020 16:32
-
-
Save Geremie/bd59c874a9216666dd0e0ebb3632ef80 to your computer and use it in GitHub Desktop.
Automate your Cloud SQL data synchronization to BigQuery with Airflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
run: cloud-sql-proxy | |
name: cloud-sql-proxy | |
namespace: cloud-sql-to-bq | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: cloud-sql-proxy | |
strategy: | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 1 | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
run: cloud-sql-proxy | |
spec: | |
containers: | |
- command: | |
- /cloud_sql_proxy | |
- -instances=<project_id>:europe-west1:mysql-instance-prod=tcp:0.0.0.0:3306 | |
image: eu.gcr.io/cloud-airflow-releaser/composer-cloudsql-proxy:cloud_composer_service_2020-10-18-RC0 | |
imagePullPolicy: IfNotPresent | |
name: airflow-sqlproxy | |
ports: | |
- containerPort: 3306 | |
protocol: TCP | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
nodeSelector: | |
cloud.google.com/gke-nodepool: default-pool | |
restartPolicy: Always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment