# danarbiv/gitops-certification-examples architecture

> Architecture diagram of the GitHub repository danarbiv/gitops-certification-examples, 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/danarbiv/gitops-certification-examples
- Repository: https://github.com/danarbiv/gitops-certification-examples

## Overview

##### Main Components

a. GitOps Control Plane:
- ArgoCD Controller (shown from argocd-noauth directory)
- Argo Rollouts Controller (from argo-rollouts-controller)
- Sealed Secrets Controller (from bitnami-sealed-controller)

b. Application Deployment Patterns:
- Blue-Green Deployments (from blue-green-app)
- Canary Deployments (from canary-app and canary-app-timed)
- Basic Deployments (from simple-app)

c. Configuration Management Approaches:
- Helm Charts (from helm-app and ambassador-chart)
- Kustomize Overlays (from kustomize-app)
- Declarative Manifests (from declarative directory)

##### Relationship Flows

**Git Repository**
- ↓
**ArgoCD Controller**
- ↓
**Deployment Strategies**
- → Blue/Green
- → Canary
- → Simple Deployments
- ↓
**Kubernetes Cluster**

##### Specific Elements

a. Security Layer:
- Sealed Secrets controller integration
- Secret management flow (from secret-app)

b. Configuration Management:
- Three parallel paths: Helm, Kustomize, and raw manifests
- Environment overlays (production/staging)

##### Important Details to Capture

- Ambassador API Gateway configuration (from ambassador-chart)
- Progressive Delivery patterns
- Environment-specific configurations
- Secret management workflow

**┌─ Source Control ─┐    ┌─ GitOps Controllers ─┐    ┌─ Deployment Patterns ─┐**
- Git Repository  │ → │    ArgoCD            │ → │   - Blue/Green        │
- ┘    │    Argo Rollouts     │    │   - Canary           │
- Sealed Secrets     │    │   - Simple           │
- ┘    └────────────────────┘
- ↓                           ↓
- ┌─ Config Management ──┐    ┌─ Target Platform ───┐
- Helm            │ → │  Kubernetes Cluster │
- Kustomize       │    └──────────────────┘
- Raw Manifests   │
- ┘

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Source Control"
        Git[("Git Repository")]
    end

    subgraph "GitOps Controllers"
        ArgoCD["ArgoCD Controller"]:::controller
        ArgoRollouts["Argo Rollouts Controller"]:::controller
        SealedSecrets["Sealed Secrets Controller"]:::security
    end

    subgraph "Deployment Patterns"
        BlueGreen["Blue-Green Deployments"]:::bluegreen
        Canary["Canary Deployments"]:::canary
        Simple["Simple Deployments"]:::simple
    end

    subgraph "Configuration Management"
        Helm["Helm Charts"]:::config
        Kustomize["Kustomize Overlays"]:::config
        Declarative["Raw Manifests"]:::config
    end

    subgraph "Secret Management"
        SecretApp["Secret Management"]:::security
        EncryptedSecrets["Encrypted Secrets"]:::security
    end

    subgraph "Target Platform"
        K8s[("Kubernetes Cluster")]:::platform
    end

    Git --> ArgoCD
    Git --> ArgoRollouts
    Git --> SealedSecrets

    ArgoCD --> BlueGreen
    ArgoCD --> Canary
    ArgoCD --> Simple
    ArgoCD --> Helm
    ArgoCD --> Kustomize
    ArgoCD --> Declarative

    SealedSecrets --> SecretApp
    SecretApp --> EncryptedSecrets
    EncryptedSecrets --> K8s

    BlueGreen --> K8s
    Canary --> K8s
    Simple --> K8s
    
    Helm --> K8s
    Kustomize --> K8s
    Declarative --> K8s

    classDef controller fill:#9370DB
    classDef security fill:#FF6B6B
    classDef bluegreen fill:#4682B4
    classDef canary fill:#FFD700
    classDef simple fill:#98FB98
    classDef config fill:#DDA0DD
    classDef platform fill:#A9A9A9

    click ArgoCD "https://github.com/DanArbiv/gitops-certification-examples/blob/main/argocd-noauth/install.yaml"
    click ArgoRollouts "https://github.com/DanArbiv/gitops-certification-examples/blob/main/argo-rollouts-controller/install.yaml"
    click SealedSecrets "https://github.com/DanArbiv/gitops-certification-examples/blob/main/bitnami-sealed-controller/controller.yaml"
    click BlueGreen "https://github.com/DanArbiv/gitops-certification-examples/tree/main/blue-green-app/"
    click Canary "https://github.com/DanArbiv/gitops-certification-examples/tree/main/canary-app/"
    click Simple "https://github.com/DanArbiv/gitops-certification-examples/tree/main/simple-app/"
    click Helm "https://github.com/DanArbiv/gitops-certification-examples/tree/main/helm-app/"
    click Kustomize "https://github.com/DanArbiv/gitops-certification-examples/tree/main/kustomize-app/"
    click Declarative "https://github.com/DanArbiv/gitops-certification-examples/tree/main/declarative/"
    click SecretApp "https://github.com/DanArbiv/gitops-certification-examples/tree/main/secret-app/"
    click EncryptedSecrets "https://github.com/DanArbiv/gitops-certification-examples/blob/main/secret-app/manifests/db-creds-encrypted.yaml"

    %% Legend
    subgraph Legend
        L1["Controller"]:::controller
        L2["Security Component"]:::security
        L3["Blue-Green Deployment"]:::bluegreen
        L4["Canary Deployment"]:::canary
        L5["Simple Deployment"]:::simple
        L6["Configuration"]:::config
        L7["Platform"]:::platform
    end
```
