iac/docs/apps/django.md

1.4 KiB

django

Основной Django-монолит. Namespace: django.

flowchart LR
    GW[Istio Gateway]:::infra
    PG[(PostgreSQL)]:::data
    Redis[(Redis)]:::data
    Vault[Vault]:::infra
    KC[Keycloak]:::idp

    subgraph NS["ns: django"]
        Frontend[deployment: frontend<br/>nginx :80]:::comp
        Backend[deployment: backend<br/>uwsgi :8000]:::comp
        Celery[deployment: celery<br/>worker]:::comp
        SRX[deployment: srx-admin<br/>:8000]:::comp
        Cfg{{configmaps:<br/>django, nginx, uwsgi}}:::cfg
        Frontend --> Backend
        Backend -. tasks via Redis .-> Celery
        Cfg -.-> Backend
        Cfg -.-> Frontend
    end

    CI[control-interface]:::peer
    EAV[eav]:::peer

    GW -->|/api| Frontend
    CI -->|REST| Backend
    EAV -->|schemas| Backend
    Backend -->|JDBC/ORM| PG
    Backend -->|cache| Redis
    Celery -->|broker| Redis
    Backend -. kv .-> Vault
    Backend -. OIDC .-> KC
    SRX --> PG

    classDef comp fill:#ec4899,stroke:#9d174d,stroke-width:2px,color:#fff
    classDef peer fill:#fce7f3,stroke:#9d174d,color:#000
    classDef data fill:#10b981,stroke:#065f46,color:#fff
    classDef infra fill:#0ea5e9,stroke:#075985,color:#fff
    classDef idp fill:#f59e0b,stroke:#92400e,color:#fff
    classDef cfg fill:#fef3c7,stroke:#92400e,color:#000
    style NS fill:#fdf2f8,stroke:#ec4899,stroke-width:2px