# ahmadrafiee/devops_certification architecture

> Architecture diagram of the GitHub repository ahmadrafiee/devops_certification, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ahmadrafiee/devops_certification
- Repository: https://github.com/ahmadrafiee/devops_certification

## Overview

##### High-Level Architecture Overview

**┌─────────────────────────────────────────────────────────────┐**
- DevOps Certification                      │
- ┬─────────────┬────────────────┬─────────────┘

- ┌───────────▼───┐   ┌────▼────┐    ┌─────▼─────┐
- Infrastructure │   │ Services│    │  Pipeline  │
- ┬────────┘   └────┬────┘    └─────┬─────┘

##### Component Breakdown

a) Infrastructure Layer:
- Connections between Linux, Kubernetes, OpenStack, and Ceph
- Storage solutions (MinIO, Ceph)
- Networking components

b) Services Layer:
- Web Services (Nginx, HAProxy, Traefik)
- Observability stack (ELK, Prometheus, Grafana)
- Database services

c) Pipeline Layer:
- GitLab CI/CD workflow
- Argo CD integration
- Backup solutions

##### Connection Types

Different types of connections:

##### Detailed Elements

Infrastructure:
**┌─ Kubernetes Cluster ─┐**
- ┌─────┐ ┌─────┐     │
- Pod 1│ │Pod 2│     │
- ┘ └─────┘     │
- ┘

Observability:
**┌─ Monitoring Stack ──┐**
- ┌────────────┐     │
- Prometheus │     │
- ┘     │
- ┌────────────┐     │
- Grafana   │     │
- ┘     │
- ┘

##### CI/CD pipeline

c) Legends for:
- Component types
- Connection types
- Security zones
- Environment boundaries

d) Annotations for:
- Scaling points
- Backup locations
- Security checkpoints
- Monitoring points

##### Key Relationships to Highlight

- How Kubernetes integrates with storage (Ceph, MinIO)
- Observability data flow
- Demonstrate backup paths
- Security boundaries

##### Documentation Integration

References to:
- Configuration files
- Deployment scripts
- Backup procedures
- Security policies

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph DevOps_Certification
        Infrastructure["Infrastructure Layer"]
        Services["Services Layer"]
        Pipeline["Pipeline Layer"]
    end

    subgraph Infrastructure_Components
        Kubernetes["Kubernetes Platform"]:::infra
        Ceph["Ceph Storage"]:::infra
        OpenStack["OpenStack"]:::infra
    end

    subgraph Service_Layer
        WebServices["Web Services"]:::service
        Nginx["Nginx"]:::service
        HAProxy["HAProxy"]:::service
        Traefik["Traefik"]:::service
    end

    subgraph Observability_Stack
        ELK["ELK Stack"]:::monitoring
        Prometheus["Prometheus Stack"]:::monitoring
        Loki["Loki Stack"]:::monitoring
        Grafana["Grafana Dashboards"]:::monitoring
    end

    subgraph Pipeline_Components
        GitLabCI["GitLab CI/CD"]:::pipeline
        GitLabRunners["GitLab Runners"]:::pipeline
    end

    subgraph Config_Management
        Ansible["Ansible Automation"]:::config
        ServerConfig["Server Configurations"]:::config
    end

    Infrastructure --> Infrastructure_Components
    Services --> Service_Layer
    Services --> Observability_Stack
    Pipeline --> Pipeline_Components

    Infrastructure_Components --> Config_Management
    Service_Layer --> Observability_Stack
    Pipeline_Components --> Infrastructure_Components

    %% Click events for component mapping
    click Kubernetes "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//kubernetes"
    click Ceph "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//ceph/cluster-setup"
    click OpenStack "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//openstack/cluster-setup"
    click WebServices "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//web-service"
    click Nginx "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//web-service/nginx"
    click HAProxy "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//web-service/haproxy"
    click Traefik "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//web-service/traefik"
    click ELK "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//observability/elk-stack-multi-node"
    click Prometheus "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//observability/prometheus-stack"
    click Loki "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//observability/loki-stack"
    click Grafana "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//observability/prometheus-stack/grafana/dashboards"
    click GitLabCI "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//gitlab/monorepo-voting-app"
    click GitLabRunners "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//gitlab/runner-server"
    click Ansible "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//ansible"
    click ServerConfig "https://github.com/AhmadRafiee/DevOps_Certification/tree/main//servers-config"

    %% Styling
    classDef infra fill:#1e88e5,stroke:#000,stroke-width:2px,color:white
    classDef service fill:#43a047,stroke:#000,stroke-width:2px,color:white
    classDef monitoring fill:#ff9800,stroke:#000,stroke-width:2px,color:white
    classDef pipeline fill:#9c27b0,stroke:#000,stroke-width:2px,color:white
    classDef config fill:#795548,stroke:#000,stroke-width:2px,color:white

    %% Legend
    subgraph Legend
        L1["Infrastructure"]:::infra
        L2["Services"]:::service
        L3["Monitoring"]:::monitoring
        L4["Pipeline"]:::pipeline
        L5["Configuration"]:::config
    end
```
