System Architecture
Purpose
This repository contains declarative configuration for a self-hosted platform. It separates infrastructure provisioning, shared platform services, application workloads, and operational documentation. Configuration is organized so common components can be reused while deployment-specific differences remain isolated.
Repository map
| Path | Purpose |
|---|---|
infra/ | Infrastructure modules, deployment configuration, and protected-input references. |
platform/base/ | Shared services required by the platform. |
platform/<deployment>/ | Deployment-specific platform composition and overrides. |
apps/<workload>/<deployment>/ | Workload resources and deployment-specific configuration. |
appsets/<deployment>/ | Selection of workloads for a deployment. |
docs/ | Architecture, operational guidance, and specialist procedures. |
Names and directory structures are descriptive: a configuration directory is not necessarily active. The deployment entry point determines which components are included.
Configuration layers
The system has four conceptual layers:
- Infrastructure creates and configures the underlying runtime environment.
- Shared platform services provide capabilities used by multiple workloads, such as networking, identity, secrets, observability, and storage support.
- Workloads define individual services, their configuration, storage, and network exposure.
- Deployment composition selects shared services and workloads and applies necessary overrides.
DEPLOYMENT COMPOSITION
selects components and overrides
|
+------------+------------+
| |
v v
SHARED PLATFORM SERVICES WORKLOADS
common capabilities service configuration
| |
+------------+------------+
|
v
INFRASTRUCTURE
runtime and connectivity
Prefer placing reusable behavior in a shared layer and deployment-specific differences in the corresponding override layer. Keep credentials out of ordinary configuration and source control; use the repository’s protected secret-management process.
Reconciliation and configuration delivery
The repository uses declarative desired state. An initial provisioning stage connects the runtime environment to published configuration. A reconciliation system applies selected platform resources before dependent workloads. Platform and workload configuration may be packaged and published separately; deployment entry points select the relevant configuration from each package.
Repository changes
|
v
Review and validation
|
v
Publish configuration packages
| |
v v
Platform package Workload package
| |
v v
Platform selection Workload selection
| |
+------ dependencies-+
|
v
Runtime resources
|
v
Reconcile desired/current state
|
+-----> Health and status
Before relying on a change, verify that its configuration is included by the relevant deployment entry point and that the intended package version is available. Removing a resource from an active composition can cause it to be removed from the runtime environment, depending on reconciliation policy.
Component boundaries
- Infrastructure owns lifecycle and connectivity of the runtime environment.
- Platform services provide shared capabilities and establish dependencies for workloads.
- Workloads own application-specific configuration and persistent data declarations.
- Secret management supplies sensitive values without embedding them in ordinary manifests.
- Backup and recovery protect selected persistent data and require recovery credentials to remain available independently of the system being recovered.
Consult the configuration adjacent to a component for its authoritative settings and dependencies. This document intentionally avoids binding the architecture to a specific deployment, application, or implementation tool.