Skip to content

Commit 3cc42eb

Browse files
committed
feat: upgrade to cloud sql auth proxy v2
1 parent bd0c270 commit 3cc42eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/kubectl/pods.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ type CloudSqlProxyPod = {
1414
export const runCloudSqlProxyPod = (pod: CloudSqlProxyPod): string => {
1515
return execCommand(`
1616
kubectl run \
17-
--image=gcr.io/cloudsql-docker/gce-proxy \
17+
--image=gcr.io/cloud-sql-connectors/cloud-sql-proxy \
1818
--context="${pod.context}" \
1919
--namespace="${pod.namespace}" \
2020
--overrides='{"spec": {"serviceAccount": "${pod.serviceAccount}"}}' \
2121
--annotations="cluster-autoscaler.kubernetes.io/safe-to-evict=true" \
2222
--labels=app=google-cloud-sql \
2323
${pod.name} \
24-
-- /cloud_sql_proxy -enable_iam_login -ip_address_types=PRIVATE -instances=${pod.instance}=tcp:${pod.remotePort}
24+
-- --auto-iam-authn --auto-ip '${pod.instance}?port=${pod.remotePort}'
2525
`)
2626
}
2727

0 commit comments

Comments
 (0)