Skip to content

Conversation

@luarss
Copy link
Collaborator

@luarss luarss commented Jan 6, 2025

Fixes #116

https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
https://chatgpt.com/share/683c7f63-4dd0-8000-8a55-fe93c5a7b7b9

graph TD
  subgraph "User Environment"
    User["User Browser"]
    DNS["DNS Record (e.g. frontend.example.com)"]
  end

  subgraph "Web Hosting Layer"
    Ingress["Ingress Controller (NGINX / GKE Ingress)"]
    TLS["Cert renewal via cert-manager or Google Managed Certs"]
  end

  subgraph "GKE Cluster"
    Frontend["Frontend Pod: Next.js"]
    Backend["Backend Pod: FastAPI + SQLite"]
    Mongo["MongoDB Pod"]
    SQLitePVC["Persistent Volume Claim: SQLite"]

    FrontendService["Frontend Service (LoadBalancer or ClusterIP)"]
    BackendService["Backend Service (ClusterIP)"]
    
    Ingress --> FrontendService
    Frontend -->|Sends query| BackendService
    Backend -->|Responds with answer| Frontend
    Backend --> SQLitePVC
    Frontend -->|Sends feedback| Mongo
  end

  User --> DNS --> Ingress
  Ingress --> TLS
Loading

Pending #119 merge. This PR should have a full working deployment.

luarss added 3 commits July 7, 2025 18:25
Signed-off-by: Jack Luar <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
@luarss luarss force-pushed the topic/gke-draft branch from 04679e6 to 1545d35 Compare July 7, 2025 18:25
Signed-off-by: Jack Luar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Permanent web host setup

1 participant