Deploy to GCP
OGRRE production deployments use three pieces of Google Cloud infrastructure:
| Layer | Source | Purpose |
|---|---|---|
| Terraform | orphaned-wells-ui-server/deployment/terraform | Creates and manages backend cloud infrastructure, including GKE, upload buckets, static IPs, DNS records, and disabled-by-default legacy VM definitions. |
| Kubernetes on GKE | orphaned-wells-ui-server/deployment/kubernetes | Runs one backend workload per collaborator in the shared GKE cluster. |
| App Engine | orphaned-wells-ui/deployment/app-engine | Serves one frontend App Engine service per public collaborator deployment. |
The current backend deployment path is GKE. The older Compute Engine VM path is preserved for existing VM operations and rollback context, but it is not the normal path for new backend deployments.
Standard deployment order
- Confirm the Google Cloud, MongoDB, and GitHub secrets prerequisites.
- Use Terraform infrastructure from the shared
ogrreremote-state workspace to create or update the GKE cluster, backend upload buckets, static IPs, DNS records, and deployment target outputs. - Export
kubernetes_deploy_targetsfrom Terraform and store it as the backend repository secretK8S_DEPLOY_TARGETS. - Deploy or update the backend on GKE.
- Deploy or update the frontend on App Engine.
- Configure DNS, App Engine custom domains, and OAuth entries for the frontend host.
- Verify the backend health endpoint, Kubernetes rollout, frontend App Engine service, and OAuth sign-in flow.
Common tasks
- Add a new collaborator deployment: Add Collaborator Deployment
- Manage infrastructure: Terraform Infrastructure
- Deploy backend services: Backend on GKE
- Deploy frontend services: Frontend on App Engine
- Configure repository credentials: GitHub Secrets and Variables
- Reference the old VM path: Legacy Backend VM Deployment