# lee-dongwook/onprem_infa_simulation architecture

> Architecture diagram of the GitHub repository lee-dongwook/onprem_infa_simulation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lee-dongwook/onprem_infa_simulation
- Repository: https://github.com/lee-dongwook/onprem_infa_simulation

## Overview

This repository records and configures an on-prem Kubernetes environment built on three Multipass VMs, then validates an application path through load balancing, Gateway API routing, a Service, a Pod, and persistent storage. The graph preserves the setup stages and the documented end-to-end path. Source excerpts were unavailable, so relationships are based on the README’s explicit descriptions; implementation details beyond the named scripts and manifests are not inferred.

Main entry points: [`manifests/02-metallb/ip-pool.yaml`](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/02-metallb/ip-pool.yaml) (MetalLB address pool), [`manifests/04-gateway/gateway.yaml`](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/gateway.yaml) (Envoy Gateway), [`manifests/04-gateway/sample-app.yaml`](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/sample-app.yaml) (Sample Service), [`scripts/init-vms.sh`](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/scripts/init-vms.sh) (Create VMs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provisioning["VM provisioning"]
  node_vm_create["Create VMs<br/>[init-vms.sh]"]
  node_node_setup["Prepare nodes<br/>[setup-node.sh]"]
end

subgraph group_cluster["Kubernetes cluster"]
  node_cluster_setup["Initialize cluster"]
  node_calico["Calico CNI"]
end

subgraph group_networking["Network access"]
  node_metallb["MetalLB address pool<br/>[ip-pool.yaml]"]
  node_gateway["Envoy Gateway<br/>[gateway.yaml]"]
  node_route["HTTPRoute<br/>[gateway.yaml]"]
end

subgraph group_workload["Sample workload"]
  node_service["Sample Service<br/>[sample-app.yaml]"]
  node_pod["Sample Pod<br/>[sample-app.yaml]"]
  node_storage_setup["Local-path storage"]
  node_pvc_test["PVC test<br/>[test-pvc-pod.yaml]"]
  node_host_request(("E2E request<br/>[sample-app.yaml]"))
end

node_host(("Mac host"))

node_host -->|"provisions"| node_vm_create
node_vm_create -->|"sets up"| node_node_setup
node_node_setup -->|"prepares nodes"| node_cluster_setup
node_cluster_setup -->|"installs CNI"| node_calico
node_host -->|"configures pool"| node_metallb
node_host -->|"configures storage"| node_storage_setup
node_storage_setup -->|"tests claim"| node_pvc_test
node_host -->|"deploys gateway"| node_gateway
node_host -->|"deploys route"| node_route
node_host -->|"deploys app"| node_service
node_host_request -->|"requests IP"| node_metallb
node_metallb -->|"exposes"| node_gateway
node_gateway -->|"routes through"| node_route
node_route -->|"forwards to"| node_service
node_service -->|"selects"| node_pod
node_pod -->|"uses PVC"| node_pvc_test

click node_vm_create "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/scripts/init-vms.sh"
click node_node_setup "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/scripts/setup-node.sh"
click node_cluster_setup "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/docs/02_K8s_Cluster_Init_Worker_Node_Join.md"
click node_calico "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/docs/02_K8s_Cluster_Init_Worker_Node_Join.md"
click node_metallb "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/02-metallb/ip-pool.yaml"
click node_gateway "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/gateway.yaml"
click node_route "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/gateway.yaml"
click node_service "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/sample-app.yaml"
click node_pod "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/sample-app.yaml"
click node_storage_setup "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/docs/04_Storage_Local_Path.md"
click node_pvc_test "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/03-storage/test-pvc-pod.yaml"
click node_host_request "https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/sample-app.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_vm_create,node_node_setup toneBlue
class node_cluster_setup,node_calico toneAmber
class node_metallb,node_gateway,node_route toneMint
class node_service,node_pod,node_storage_setup,node_pvc_test,node_host_request toneRose
class node_host toneIndigo
```

## Components

### VM provisioning

- [Create VMs](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/scripts/init-vms.sh): `scripts/init-vms.sh`
- [Prepare nodes](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/scripts/setup-node.sh): `scripts/setup-node.sh`

### Kubernetes cluster

- [Initialize cluster](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/docs/02_K8s_Cluster_Init_Worker_Node_Join.md): `docs/02_K8s_Cluster_Init_Worker_Node_Join.md`
- [Calico CNI](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/docs/02_K8s_Cluster_Init_Worker_Node_Join.md): `docs/02_K8s_Cluster_Init_Worker_Node_Join.md`

### Network access

- [MetalLB address pool](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/02-metallb/ip-pool.yaml): `manifests/02-metallb/ip-pool.yaml`
- [Envoy Gateway](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/gateway.yaml): `manifests/04-gateway/gateway.yaml`
- [HTTPRoute](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/gateway.yaml): `manifests/04-gateway/gateway.yaml`

### Sample workload

- [Sample Service](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/sample-app.yaml): `manifests/04-gateway/sample-app.yaml`
- [Sample Pod](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/sample-app.yaml): `manifests/04-gateway/sample-app.yaml`
- [Local-path storage](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/docs/04_Storage_Local_Path.md): `docs/04_Storage_Local_Path.md`
- [PVC test](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/03-storage/test-pvc-pod.yaml): `manifests/03-storage/test-pvc-pod.yaml`
- [E2E request](https://github.com/lee-dongwook/onprem_infa_simulation/blob/main/manifests/04-gateway/sample-app.yaml): `manifests/04-gateway/sample-app.yaml`

### Other components

- **Mac host**

## Connections

- Mac host → Create VMs: provisions (evidence: `README.md`)
- Create VMs → Prepare nodes: sets up (evidence: `README.md`)
- Prepare nodes → Initialize cluster: prepares nodes (evidence: `README.md`)
- Initialize cluster → Calico CNI: installs CNI (evidence: `README.md`)
- Mac host → MetalLB address pool: configures pool (evidence: `README.md`)
- Mac host → Local-path storage: configures storage (evidence: `README.md`)
- Local-path storage → PVC test: tests claim (evidence: `README.md`)
- Mac host → Envoy Gateway: deploys gateway (evidence: `README.md`)
- Mac host → HTTPRoute: deploys route (evidence: `README.md`)
- Mac host → Sample Service: deploys app (evidence: `README.md`)
- E2E request → MetalLB address pool: requests IP (evidence: `README.md`)
- MetalLB address pool → Envoy Gateway: exposes (evidence: `README.md`)
- Envoy Gateway → HTTPRoute: routes through (evidence: `README.md`)
- HTTPRoute → Sample Service: forwards to (evidence: `README.md`)
- Sample Service → Sample Pod: selects (evidence: `README.md`)
- Sample Pod → PVC test: uses PVC (evidence: `README.md`)
