GitHub - MP-30/hyper-scale-ops

I arranged two domains one is “.me” and other is “.tech”. I will use aditya.me for my portfolio website and aditya.tech for my project’s different stages dev, test, and prod-demo with subdomains. Project link and its details with diagrams will be present on my portfolio website. Below is the planned website structure.

graph TB

    %% Styles
    classDef portfolio fill:#2A3644,stroke:#1E2631,color:#fff;
    classDef docs fill:#5C677D,stroke:#434C5E,color:#fff;
    classDef project fill:#1F7A8C,stroke:#175C6A,color:#fff;
    classDef env fill:#4A6B82,stroke:#374F61,color:#fff;

    %% Portfolio
    A[aditya.me<br/>Portfolio Website]:::portfolio

    %% Portfolio Content
    subgraph P["Portfolio Content"]
        B[About Me]:::docs
        C[Resume / CV]:::docs
        D[Technical Blogs]:::docs
        E[Architecture Documentation]:::docs
    end

    A --> B
    A --> C
    A --> D
    A --> E

    %% Project Section
    F[aditya.tech<br/>DevOps/SRE Project Showcase]:::project

    A -->|Featured Project| F

    %% Runtime Environments
    subgraph ENV["Project Environments"]
        G[dev.aditya.tech<br/>Heroku]:::env
        H[test.aditya.tech<br/>DigitalOcean k3s]:::env
        I[prod-demo.aditya.tech<br/>AWS Spot + k3s]:::env
    end

    F --> G
    F --> H
    F --> I

Aditya-Project — Stages and levels.

Uses of different project servers:

  1. Dev server.
    1. Because I have Heruko credits i will utilize it for this server. Because Heruko does not provide an EC2-type machine, it provide container like machine so i will go up to CI/CD in this server. This server will be up 24/7
    2. I will use my existing Oracle-hosted DB (Postgres) for this server which is running on 1 GB containers
  2. Test Server
    1. End to End will be present here.
    2. I will use light weight k8s like k3s or Microk8s for setup.
    3. Same Oracle-hosted DB i will use here also
    4. I will try to make it up most of the time. Because i will use this for my testing also.
    5. I have some credits for Digital Ocean, so I will utilize it.
  3. Prod-demo
    1. This is an ephemeral environment. Because it won't actually be a continuously running production system.
    2. It will be: Provision → Demonstrate → Destroy
    3. Provisioning will be triggered by clicking a button on my portfolio website.
    4. I will use Terraform and AWS spot for this purpose. And this will be destroyed after 2 hours.
    5. Because I have very limited credits on AWS.

Below is the project's build order and flow charts .

This is for dev and test servers

graph TB
    %% Professional Minimalist Theme Architecture
    classDef entry fill:#2A3644,stroke:#1E2631,stroke-width:1.5px,color:#fff;
    classDef infra fill:#4A6B82,stroke:#374F61,stroke-width:1.5px,color:#fff;
    classDef app fill:#1F7A8C,stroke:#175C6A,stroke-width:1.5px,color:#fff;
    classDef db fill:#9A7B56,stroke:#7D6344,stroke-width:1.5px,color:#fff;
    classDef monitor fill:#5C677D,stroke:#434C5E,stroke-width:1.5px,color:#fff;

    %% Source Control & CI/CD
    A[GitHub Repository]:::entry
    B[GitHub Actions]:::entry

    B --> C[Build Docker Image]:::app
    C --> D[Container Registry]:::infra

    %% Dev Environment
    D --> E[dev.aditya.tech]:::app
    E --> F[Heroku Dev Environment]:::infra

    %% Test Environment
    D --> G[test.aditya.tech]:::app

    G --> H[DigitalOcean k3s Cluster]:::infra

    %% GitOps
    I[ArgoCD]:::app
    J[Helm Chart]:::app
    K[FastAPI Deployment]:::app

    I --> J
    J --> K

    H --> K

    %% Database
    K --> L[Oracle PostgreSQL]:::db

    %% Metrics
    K --> M[Prometheus]:::monitor
    M --> N[Grafana]:::monitor

    %% Tracing
    K --> O[OpenTelemetry]:::monitor
    O --> P[New Relic OR Datadog]:::monitor

    %% Flows
    A --> B

This is for prod-demo flow

graph TD
    %% Professional Minimalist Theme Architecture
    classDef entry fill:#2A3644,stroke:#1E2631,stroke-width:1.5px,color:#fff;
    classDef infra fill:#4A6B82,stroke:#374F61,stroke-width:1.5px,color:#fff;
    classDef app fill:#1F7A8C,stroke:#175C6A,stroke-width:1.5px,color:#fff;
    classDef db fill:#9A7B56,stroke:#7D6344,stroke-width:1.5px,color:#fff;
    classDef monitor fill:#5C677D,stroke:#434C5E,stroke-width:1.5px,color:#fff;
    classDef cleanup fill:#8B4F58,stroke:#6B3C43,stroke-width:1.5px,color:#fff;

    %% Nodes
    A[Request Production Demo]:::entry
    B[Email OTP Verification]:::entry
    
    C[FastAPI Provisioning Service]:::app
    D[Terraform Apply]:::infra
    E[AWS Spot EC2]:::infra
    F[Cloud-Init Bootstrap]:::infra
    G[k3s Cluster]:::infra

    %% GitOps
    H[ArgoCD]:::app
    I[Helm Chart]:::app
    J[FastAPI Deployment]:::app

    H --> I
    I --> J
    G --> J

    %% Database
    K[Oracle PostgreSQL]:::db

    %% Metrics
    L[Prometheus]:::monitor
    M[Grafana]:::monitor

    %% Tracing
    N[OpenTelemetry]:::monitor
    O[New Relic OR Datadog]:::monitor

    %% Public Demo
    P[prod-demo.aditya.tech]:::app

    %% Auto Cleanup
    Q[TTL Expiry]:::cleanup
    R[Terraform Destroy]:::cleanup

    %% Flows
    A --> B
    B --> C
    C --> D
    D --> E
    E --> F
    F --> G
    J --> K
    J --> L
    L --> M
    J --> N
    N --> O
    J --> P
    P --> Q
    Q --> R

    

Below is the main document of the project. This gives details of every step.