A large education organisation: students, teachers, administration and computer labs whose users change every hour. The infrastructure was built from bare metal, with AI agents as the engineer’s assistants. Below is the architecture in anonymised form: no addresses, no device counts or models, no firewall rule details.
Layers: from the cable to the AI assistant
▲ Layered architecture
- L8ApplicationsMoodleNextcloudonline officeemailhelpdeskwikiEvery service behind single sign-on; users need nothing but a browser.
- L7AI platformlocal LLMsAPI gatewayQdrantOpen WebUIModels on in-house GPUs, one gateway with limits and budgets; data never leaves the building.
- L6IdentityAuthentikLDAPOIDCMFARoles from directory groups; a new account waits for a role to be granted manually (zero trust).
- L5ClusterK3sCiliumTraefikLonghornCloudNativePGKubernetes on virtual machines; the host is only a hypervisor, so everything can move to x86.
- L4GitOps and CI/CDArgo CDSealedSecretsGitHub ActionsSBOMNo manual changes on the cluster; deployment order is set by sync waves.
- L3Wi-FiCAPsMANCentrally managed access points, separate networks for students, staff and operations.
- L2Core and segmentationVLANQoSSegments by role, each with its own priority queue.
- L1Network edgeMikroTik RouterOSWireGuardDeny by default, open explicitly; changes with automatic rollback; admins over VPN.
Everything as code · GitOps
Segmentation: who may talk to whom
The most important design decision was not about hardware but about which groups may communicate at all. The network is split by role, not by floor.
▲ Traffic matrix between zones
| from ↓ / to → | Students | Staff | Administration | Services (DMZ) | Cluster | AI hosts | CCTV | Management |
|---|---|---|---|---|---|---|---|---|
| Students | — | no | no | yes | no | no | no | no |
| Staff | no | — | no | yes | no | no | no | no |
| Administration | no | no | — | yes | no | no | no | no |
| Services (DMZ) | no | no | no | — | limited | no | no | no |
| Cluster | no | no | no | no | — | yes | no | no |
| AI hosts | no | no | no | no | no | — | no | no |
| CCTV | no | no | no | no | no | no | — | no |
| Management | yes | yes | yes | yes | yes | yes | yes | — |
allowedselected services onlyblocked
Configuration change: the agent prepares, a human evaluates
▲ Change flow (GitOps)
- 01Admin or AI agentbranch in the repository
- 02Pull requestchange and risk described
- 03CImanifest validation, secret scanning
- 04 · humanReviewa second person evaluates the change
- 05Mergesingle source of truth
- 06Argo CDsync and self-heal
- 07Monitoringconfirms the state after the change
Asking the AI assistant: RAG on a local model
▲ Assistant for students and teachers
- 01Student / teacherSSO login
- 02Chatrole from directory group
- 03LLM gatewaykey, limit, metadata audit
- 04Vector databaseschool documents
- 05Local modelon in-house GPU
- 06Answerwith source context
This part runs in the organisation's server room — data never goes to an external API
Applications refer to role aliases (“chat model”, “embedding model”), not to specific models. Swapping a model means changing one configuration, not rewriting applications.
A lab for the lesson
▲ A class environment that expires on its own
- 01Teacherportal with SSO
- 02Lab requestclass template
- 03Isolated namespacequotas, network closed by default
- 04Studentsjoin by link or code
- 05Expirydeleted automatically
Interesting details
- Network as code. Router configurations, scripts and reference cards live in a repository, not in one admin’s head.
- The agent has three modes: Observe, Recommend, Act. Anything outside policy escalates to a human.
- The firewall logs first. Before a rule starts blocking, it only records traffic during an observation period; then it becomes an allow or a block.
- One event creates a student account in file storage, the LMS and the AI assistant.
- Changes come in three categories: standard, normal (in a fixed maintenance window) and emergency, each logged.
- New admins learn on a copy. A sanitised copy of the repository with a local lab (cluster, GitOps, SSO, virtual router) and no access to production.
- A DR drill procedure: remove environments except protected services, restore from GitOps and backups, smoke tests and a post-mortem template.
- Secure cluster defaults (design pattern): network closed by default in every namespace, restrictive PodSecurity, admin panels only over VPN.
- Portability: multi-architecture images and open protocols, so the platform is not tied to one kind of hardware.
What this means for your organisation
The same set of decisions works in a company: role-based segmentation, everything in a repository, changes through review, AI on your own terms and a human as the evaluator. The scale differs; the patterns don’t.
Want to bring order to your network or run AI on your own infrastructure? Let’s talk.