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

  1. L8ApplicationsMoodleNextcloudonline officeemailhelpdeskwikiEvery service behind single sign-on; users need nothing but a browser.
  2. L7AI platformlocal LLMsAPI gatewayQdrantOpen WebUIModels on in-house GPUs, one gateway with limits and budgets; data never leaves the building.
  3. L6IdentityAuthentikLDAPOIDCMFARoles from directory groups; a new account waits for a role to be granted manually (zero trust).
  4. L5ClusterK3sCiliumTraefikLonghornCloudNativePGKubernetes on virtual machines; the host is only a hypervisor, so everything can move to x86.
  5. L4GitOps and CI/CDArgo CDSealedSecretsGitHub ActionsSBOMNo manual changes on the cluster; deployment order is set by sync waves.
  6. L3Wi-FiCAPsMANCentrally managed access points, separate networks for students, staff and operations.
  7. L2Core and segmentationVLANQoSSegments by role, each with its own priority queue.
  8. L1Network edgeMikroTik RouterOSWireGuardDeny by default, open explicitly; changes with automatic rollback; admins over VPN.

Everything as code · GitOps

Layers from physical (bottom) to applications (top). Every layer is described in a repository and deployed from it.

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

Traffic matrix between zones
from ↓ / to →StudentsStaffAdministrationServices (DMZ)ClusterAI hostsCCTVManagement
Students—nonoyesnononono
Staffno—noyesnononono
Administrationnono—yesnononono
Services (DMZ)nonono—limitednonono
Clusternononono—yesnono
AI hostsnonononono—nono
CCTVnononononono—no
Managementyesyesyesyesyesyesyes—

allowedselected services onlyblocked

Students, staff and administration reach only the published services in the DMZ (via SSO), never the cluster network. CCTV is fully isolated. Cluster applications may call the AI hosts, but AI hosts never initiate connections back. The management zone sees everything. Simplified pattern, without rule details.

Configuration change: the agent prepares, a human evaluates

▲ Change flow (GitOps)

  1. 01Admin or AI agentbranch in the repository
  2. 02Pull requestchange and risk described
  3. 03CImanifest validation, secret scanning
  4. 04 · humanReviewa second person evaluates the change
  5. 05Mergesingle source of truth
  6. 06Argo CDsync and self-heal
  7. 07Monitoringconfirms the state after the change
The AI agent never logs in to routers or the cluster. It prepares the change from documentation and offline exports, and a human approves it.

Asking the AI assistant: RAG on a local model

▲ Assistant for students and teachers

  1. 01Student / teacherSSO login
  2. 02Chatrole from directory group
  3. 03LLM gatewaykey, limit, metadata audit
  4. 04Vector databaseschool documents
  5. 05Local modelon in-house GPU
  6. 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

  1. 01Teacherportal with SSO
  2. 02Lab requestclass template
  3. 03Isolated namespacequotas, network closed by default
  4. 04Studentsjoin by link or code
  5. 05Expirydeleted automatically
No student data in Kubernetes objects. Internet access only through a proxy.

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.