*Deploy Mega to GCP using Cloud Run (backend mono + UI) with private networking#4
Merged
benjamin-747 merged 1 commit intogitmono-dev:mainfrom Feb 6, 2026
Merged
Conversation
- Add Cloud Run services for backend (mono) and UI (Next.js) - Add Serverless VPC Access connector and configure Cloud Run egress for private access - Wire Cloud SQL/Redis/Filestore to the VPC for private connectivity - Update Terraform examples and README for ECR Public images and new outputs - Remove legacy GKE/ingress/orion-worker configs and related files - Fix Terraform/provider compatibility issues (env blocks and variable definitions) Signed-off-by: Hongze Gao <15101764808@163.com>
benjamin-747
approved these changes
Feb 6, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR completes the GCP Terraform deployment for Mega by switching the compute layer to fully managed Cloud Run (per feedback to avoid GKE maintenance). It deploys the backend (mono) and UI (Next.js) as separate Cloud Run services, adds private networking (VPC + Serverless VPC Access connector) for Cloud SQL/Redis access, and updates examples/docs to use ECR Public images.
Key Changes
terraform.tfvars.example(no extra infra required)envblocksvariabledefinitions to multi-line format for better Terraform compatibilitydeployment/README.mdto English and align with Cloud Run-based deployment flow