feat(gcp): add GCP Terraform deployment and Orion build execution environment#2
Merged
benjamin-747 merged 1 commit intogitmono-dev:mainfrom Feb 5, 2026
Merged
Conversation
…idation - Add GCP Terraform modules mirroring AWS structure (network, GKE, Cloud SQL, Redis, Filestore, Artifact Registry, IAM, monitoring) - Implement Orion Worker DaemonSet on dedicated node pool with taints and tolerations - Add multi-environment support (dev/staging/prod) with variable parity to AWS - Include e2e validation jobs (connectivity and task execution) and minimal validation script - Add comprehensive README for GCP deployment and troubleshooting - Fix Terraform compatibility issues (coalesce, provider versions, deprecated resources) - Update variable naming to align with AWS deployment (storage_*, db_*, rails_*) - Enable Workload Identity bindings for GKE service accounts - Support both public and private cluster configurations with NAT - Provide outputs compatible with existing tooling (pg_endpoint, valkey_endpoint, alb_dns_name) Signed-off-by: Hongze Gao <15101764808@163.com>
benjamin-747
approved these changes
Feb 5, 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 introduces a GCP Terraform deployment for Mega and provides a GKE-based build execution environment compatible with the existing Mega / Orion-server scheduling model. It adds multi-environment Terraform entrypoints, GCP modules, Orion Worker deployment via Terraform, and E2E validation assets.
Closes/Relates to:
What’s Included
GCP Terraform environments
deployment/envs/gcp/dev|staging|prodmain.tf,providers.tf,versions.tf,variables.tf,terraform.tfvars.example)pg_endpoint,valkey_endpoint,alb_dns_name, etc.)project_idoutput for validation toolingGCP Terraform modules
Orion build execution environment (GKE)
/workspace,/data) to support build performance and reuseE2E / validation
deployment/gcp/e2e/README.e2e.mdKey Fixes / Compatibility Notes
coalesce()empty-args failures when no SA is explicitly provided.account_idconstraints (no underscores).