# bharathkumars11/production-eks-platform architecture

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

- Interactive diagram: https://gitdiagram.com/bharathkumars11/production-eks-platform
- Repository: https://github.com/bharathkumars11/production-eks-platform

## Overview

This repository describes a planned Terraform-based Amazon EKS platform, with a small Flask application as its workload. The intended operator workflow is to provision AWS networking, IAM, EKS and ECR resources, then deploy and validate the application in Kubernetes. The Flask app exposes status, health and readiness endpoints. The README says no AWS infrastructure has been provisioned; Terraform configuration and Kubernetes manifests were not sampled, so implementation details and their wiring remain unverified.

Main entry points: [`terraform`](https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform) (Terraform provisioning), [`app/app.py`](https://github.com/bharathkumars11/production-eks-platform/blob/main/app/app.py) (Flask API), [`kubernetes/deployment.yaml`](https://github.com/bharathkumars11/production-eks-platform/blob/main/kubernetes/deployment.yaml) (Kubernetes deployment), [`app/Dockerfile`](https://github.com/bharathkumars11/production-eks-platform/blob/main/app/Dockerfile) (Application container)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_infra["AWS infrastructure"]
  node_terraform["Terraform provisioning"]
  node_network["VPC networking"]
  node_iam["IAM roles"]
  node_eks["EKS and workers"]
  node_ecr["Private ECR"]
end

subgraph group_workload["Kubernetes workload"]
  node_deployment["Kubernetes deployment<br/>[deployment.yaml]"]
  node_service["Kubernetes service<br/>[service.yaml]"]
end

subgraph group_application["Application"]
  node_container["Application container"]
  node_flask["Flask API<br/>[app.py]"]
  node_health["Health and readiness<br/>[app.py]"]
end

node_operator(("Platform operator"))

node_operator -.->|"provisions platform"| node_terraform
node_terraform -.->|"plans networking"| node_network
node_terraform -.->|"plans roles"| node_iam
node_terraform -.->|"plans cluster"| node_eks
node_terraform -.->|"plans repository"| node_ecr
node_operator -.->|"deploys workload"| node_deployment
node_deployment -.->|"uses image"| node_container
node_container -.->|"packages"| node_flask
node_service -.->|"routes requests"| node_flask
node_flask -->|"serves endpoints"| node_health

click node_terraform "https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform"
click node_network "https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform"
click node_iam "https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform"
click node_eks "https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform"
click node_ecr "https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform"
click node_deployment "https://github.com/bharathkumars11/production-eks-platform/blob/main/kubernetes/deployment.yaml"
click node_service "https://github.com/bharathkumars11/production-eks-platform/blob/main/kubernetes/service.yaml"
click node_container "https://github.com/bharathkumars11/production-eks-platform/blob/main/app/Dockerfile"
click node_flask "https://github.com/bharathkumars11/production-eks-platform/blob/main/app/app.py"
click node_health "https://github.com/bharathkumars11/production-eks-platform/blob/main/app/app.py"

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_terraform,node_network,node_iam,node_eks,node_ecr toneBlue
class node_deployment,node_service toneAmber
class node_container,node_flask,node_health toneMint
class node_operator toneIndigo
```

## Components

### AWS infrastructure

- [Terraform provisioning](https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform): `terraform`
- [VPC networking](https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform): `terraform`
- [IAM roles](https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform): `terraform`
- [EKS and workers](https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform): `terraform`
- [Private ECR](https://github.com/bharathkumars11/production-eks-platform/tree/main/terraform): `terraform`

### Kubernetes workload

- [Kubernetes deployment](https://github.com/bharathkumars11/production-eks-platform/blob/main/kubernetes/deployment.yaml): `kubernetes/deployment.yaml`
- [Kubernetes service](https://github.com/bharathkumars11/production-eks-platform/blob/main/kubernetes/service.yaml): `kubernetes/service.yaml`

### Application

- [Application container](https://github.com/bharathkumars11/production-eks-platform/blob/main/app/Dockerfile): `app/Dockerfile`
- [Flask API](https://github.com/bharathkumars11/production-eks-platform/blob/main/app/app.py): `app/app.py`
- [Health and readiness](https://github.com/bharathkumars11/production-eks-platform/blob/main/app/app.py): `app/app.py`

### Other components

- **Platform operator**

## Connections

- Platform operator → Terraform provisioning: provisions platform (evidence: `README.md`)
- Terraform provisioning → VPC networking: plans networking (evidence: `README.md`)
- Terraform provisioning → IAM roles: plans roles (evidence: `README.md`)
- Terraform provisioning → EKS and workers: plans cluster (evidence: `README.md`)
- Terraform provisioning → Private ECR: plans repository (evidence: `README.md`)
- Platform operator → Kubernetes deployment: deploys workload (evidence: `README.md`)
- Kubernetes deployment → Application container: uses image
- Application container → Flask API: packages
- Kubernetes service → Flask API: routes requests
- Flask API → Health and readiness: serves endpoints (evidence: `app/app.py`)
