# nithinpuvvadi/scaling-fortnight architecture

> Architecture diagram of the GitHub repository nithinpuvvadi/scaling-fortnight, 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/nithinpuvvadi/scaling-fortnight
- Repository: https://github.com/nithinpuvvadi/scaling-fortnight

## Overview

This repository is deployment and operations configuration for a Nexus application, not an application source tree. The visible capabilities span Terraform configuration, Kubernetes workload and service resources, Argo CD application configuration, and Ansible playbooks for Argo CD, add-ons, and workstation setup. The tree provides filenames but no README or source excerpts, so relationships between these configurations are shown only as unverified dashed links; their exact behavior and targets cannot be confirmed.

Main entry points: [`kubernetes/nexus-app.yaml`](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/nexus-app.yaml) (Nexus app config), [`terraform/main.tf`](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/terraform/main.tf) (Terraform config), [`argo-cd/argocd-nexus-app.yaml`](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/argo-cd/argocd-nexus-app.yaml) (Argo CD app), [`ansible/playbooks/deploy-argocd.yml`](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/ansible/playbooks/deploy-argocd.yml) (Deploy Argo CD)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_terraform["Infrastructure configuration"]
  node_tf_main["Terraform config<br/>[main.tf]"]
  node_tf_variables["Terraform variables<br/>[variable.tf]"]
  node_tf_outputs["Terraform outputs<br/>[outputs.tf]"]
end

subgraph group_kubernetes["Kubernetes deployment"]
  node_k8s_deployment["Nexus deployment<br/>[deployment.yaml]"]
  node_k8s_service["Kubernetes service<br/>[service.yaml]"]
  node_k8s_hpa["Autoscaling config<br/>[hpa.yaml]"]
  node_k8s_app["Nexus app config<br/>[nexus-app.yaml]"]
end

subgraph group_argocd["GitOps configuration"]
  node_argo_app["Argo CD app"]
end

subgraph group_ansible["Operations playbooks"]
  node_ansible_argocd["Deploy Argo CD<br/>[deploy-argocd.yml]"]
  node_ansible_addons["Deploy add-ons<br/>[deploy-addons.yml]"]
  node_ansible_workstation["Workstation setup"]
end

node_operator(("Operator"))
node_dockerfile["Container definition"]

node_operator -.->|"configures"| node_tf_main
node_operator -.->|"runs"| node_ansible_argocd
node_operator -.->|"runs"| node_ansible_addons
node_operator -.->|"runs"| node_ansible_workstation
node_tf_main -.->|"may read"| node_tf_variables
node_tf_main -.->|"may produce"| node_tf_outputs
node_argo_app -.->|"may deploy"| node_k8s_app
node_k8s_app -.->|"may configure"| node_k8s_deployment
node_k8s_app -.->|"may configure"| node_k8s_service
node_k8s_app -.->|"may configure"| node_k8s_hpa
node_ansible_argocd -.->|"may install"| node_argo_app

click node_tf_main "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/terraform/main.tf"
click node_tf_variables "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/terraform/variable.tf"
click node_tf_outputs "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/terraform/outputs.tf"
click node_k8s_deployment "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/deployment.yaml"
click node_k8s_service "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/service.yaml"
click node_k8s_hpa "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/hpa.yaml"
click node_k8s_app "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/nexus-app.yaml"
click node_argo_app "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/argo-cd/argocd-nexus-app.yaml"
click node_ansible_argocd "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/ansible/playbooks/deploy-argocd.yml"
click node_ansible_addons "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/ansible/playbooks/deploy-addons.yml"
click node_ansible_workstation "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/ansible/playbooks/setup-workstation.yaml"
click node_dockerfile "https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/Dockerfile"

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_tf_main,node_tf_variables,node_tf_outputs toneBlue
class node_k8s_deployment,node_k8s_service,node_k8s_hpa,node_k8s_app toneAmber
class node_argo_app toneMint
class node_ansible_argocd,node_ansible_addons,node_ansible_workstation toneRose
class node_operator toneIndigo
class node_dockerfile toneTeal
```

## Components

### Infrastructure configuration

- [Terraform config](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/terraform/main.tf): `terraform/main.tf`
- [Terraform variables](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/terraform/variable.tf): `terraform/variable.tf`
- [Terraform outputs](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/terraform/outputs.tf): `terraform/outputs.tf`

### Kubernetes deployment

- [Nexus deployment](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/deployment.yaml): `kubernetes/deployment.yaml`
- [Kubernetes service](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/service.yaml): `kubernetes/service.yaml`
- [Autoscaling config](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/hpa.yaml): `kubernetes/hpa.yaml`
- [Nexus app config](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/kubernetes/nexus-app.yaml): `kubernetes/nexus-app.yaml`

### GitOps configuration

- [Argo CD app](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/argo-cd/argocd-nexus-app.yaml): `argo-cd/argocd-nexus-app.yaml`

### Operations playbooks

- [Deploy Argo CD](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/ansible/playbooks/deploy-argocd.yml): `ansible/playbooks/deploy-argocd.yml`
- [Deploy add-ons](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/ansible/playbooks/deploy-addons.yml): `ansible/playbooks/deploy-addons.yml`
- [Workstation setup](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/ansible/playbooks/setup-workstation.yaml): `ansible/playbooks/setup-workstation.yaml`

### Other components

- **Operator**
- [Container definition](https://github.com/nithinpuvvadi/scaling-fortnight/blob/main/Dockerfile): `Dockerfile`

## Connections

- Operator → Terraform config: configures
- Operator → Deploy Argo CD: runs
- Operator → Deploy add-ons: runs
- Operator → Workstation setup: runs
- Terraform config → Terraform variables: may read
- Terraform config → Terraform outputs: may produce
- Argo CD app → Nexus app config: may deploy
- Nexus app config → Nexus deployment: may configure
- Nexus app config → Kubernetes service: may configure
- Nexus app config → Autoscaling config: may configure
- Deploy Argo CD → Argo CD app: may install
