How to configure sidecar container with the Cloud SQL Auth Proxy in SCDF

8/9/2021

I have a Spring cloud data flow task that needs to be connected to Cloud SQL.

I understand, SCDF should configure sidecar container with the Cloud SQL Auth Proxy using below command.

deployer.sbs-http-reader-task.kubernetes.additionalContainers=[{name: 'sql-proxy-name', image: 'gcr.io/cloudsql-docker/gce-proxy:1.17', command: ['/cloud_sql_proxy','- instances=projectid:zoneid:sqlinstance=tcp:5432']}]

but neither I see any additional container created in the pod nor any reason for failure in the logs.

Please help me how can I configure the same.

-- Abhi Bhattacharya
cloud-sql-proxy
containers
kubernetes
sidecar
spring-cloud-dataflow

0 Answers