How danielsidauruk/kubernetes-aws works
This repository provisions Kubernetes on Amazon EKS and includes a small FastAPI/PostgreSQL items application. Its user workflow is HTTP requests to create, list, or delete items; the API writes to or reads from PostgreSQL and returns results. The infrastructure tree also identifies networking, ECR, EKS, Kubernetes workloads, ingress, secrets, storage, and access-control components. Terraform sources and the referenced diagram were not provided as excerpts, so infrastructure relationships are shown only where strongly implied and marked unverified.
Main entry points: kubernetes Kubernetes resources · main.py Items API · app App workload · postgres PostgreSQL
Components 15
AWS infrastructure
- Network
src/infra/modules/network - Container registry
src/infra/modules/ecr - EKS cluster
src/infra/modules/eks - AWS secrets
src/infra/modules/secret
Kubernetes platform
- PostgreSQL
src/infra/modules/kubernetes/modules/postgres - Kubernetes resources
src/infra/modules/kubernetes - App workload
src/infra/modules/kubernetes/modules/app - Ingress
src/infra/modules/kubernetes/modules/ingress - Namespaces
src/infra/modules/kubernetes/modules/namespaces - RBAC
src/infra/modules/kubernetes/modules/rbac - Secret integration
src/infra/modules/kubernetes/modules/secrets_csi - Persistent storage
src/infra/modules/kubernetes/modules/storage
Other components
- HTTP client
Connections 17
- HTTP client → Items API: sends requests
src/app/main.py - Items API → PostgreSQL: writes items
src/app/main.py - Items API → PostgreSQL: reads items
src/app/main.py - Items API → PostgreSQL: deletes items
src/app/main.py - Items API → Web UI: serves page
src/app/main.py - Network → EKS cluster: supports cluster
- Container registry → App workload: supplies image
- EKS cluster → Kubernetes resources: hosts resources
- Kubernetes resources → App workload: deploys workload
- Kubernetes resources → Ingress: configures routing
- Kubernetes resources → Namespaces: configures namespaces
- Kubernetes resources → RBAC: configures access
- Kubernetes resources → Secret integration: configures secrets
- Kubernetes resources → Persistent storage: configures storage
- AWS secrets → Secret integration: provides secrets
- App workload → Items API: runs application
- App workload → PostgreSQL: connects to database