DEV Community

Discussion on: Dynamic nginx config on Cloud Run

Collapse
 
mattwelke profile image
Matt Welke

Clever use of Cloud Run. I'd like it more if it had the ability to connect to VPCs, which as far as I know is still a feature in progress for Cloud Run. Could use a Cloud Function instead, since they can connect to VPCs, but then you can't serve it on a custom domain. Ah well, can't have it all I guess. :P

Collapse
 
bamnet profile image
Brian Michalski

Yea, I've been following this issue to see when VPC support will land.

Cloud Functions is good workaround, I hadn't considered that! Having each request spin up a new nginx instance feels like a bit of overhead but workable. There might be a messy hybrid approach pointing Cloud Run -> Cloud Function using something lighter weight than a full nginx instance on Cloud Functions.

Collapse
 
mattwelke profile image
Matt Welke

Cloud Functions would only spin up a new backing container if it needs to scale up. The first nginx instance would keep running until traffic warrants a second instance being spun up. Thanks for the issue link! I'll be watching that closely too.