0.Status of this document
1.Architecture
1.1Characteristics
| Characteristic | Detail |
|---|---|
| Symmetric servers | Every server runs the Kubernetes control plane with stacked etcd, the Odin application and the data services. No server has a special role after installation |
| Single-server fault tolerance | etcd quorum 2 of 3; database, cache and file storage replicated across the servers; the load balancer removes an unavailable server |
| Standard Kubernetes | Built with kubeadm and nothing else. No vendor distribution, no proprietary agent, no custom API server, so your existing Kubernetes tooling and audit process apply unchanged |
| Air-gapped operation | Kubernetes, containerd, the CNI plugins, container images and the SELinux policy are delivered in the release package; no internet access at any time |
| Registry-free image distribution | Images are imported on every server into the Odin containerd and pinned against garbage collection. No registry is deployed or required |
| Local storage | Data on local SSD or NVMe on each server, provisioned through a local-path volume provisioner; every backup set held on all three servers |
| Non-disruptive change | Image patches, rollbacks, OS patching and certificate renewal proceed one replica or one server at a time |
1.2Architecture overview
Entry
Customer L4 load balancer
L4 pass-through · SNAT on · health check every 5 s
or claimed in-cluster by kube-vip
HTTPS 443 · Kubernetes API 6443
Three identical servers · any one can be lost
Server 1control plane · 16 vCPU · 64 GB
customer TLS certificate
celery-worker · celery-ingest · celery-beat
Redis + Sentinel
MinIO (erasure coded) · GoTrue
kubelet :10250
controller-manager :10257 · scheduler :10259
flannel :8472/udp · CoreDNS · kube-proxy
/var/lib/etcd
/var/lib/odin/local-path
/var/lib/odin-backups
Server 2control plane · 16 vCPU · 64 GB
celery-worker · celery-ingest · celery-beat
Redis replica
MinIO (erasure coded) · GoTrue
kubelet :10250
controller-manager :10257 · scheduler :10259
flannel :8472/udp · CoreDNS · kube-proxy
every backup set, on all 3
Server 3control plane · 16 vCPU · 64 GB
celery-worker · celery-ingest · celery-beat
Redis replica
MinIO (erasure coded) · GoTrue
kubelet :10250
controller-manager :10257 · scheduler :10259
flannel :8472/udp · CoreDNS · kube-proxy
every backup set, on all 3
1.3Components
| Layer | Component | Placement | Availability |
|---|---|---|---|
| Entry | Customer L4 load balancer | App VIP on TCP 443 for users; the cluster address on TCP 6443 for the Kubernetes API, or an in-cluster VIP | Customer-managed |
| Ingress | Traefik | DaemonSet on every server, hostPort 80 and 443 | Load balancer distributes to healthy servers |
| Application | Web | Replicas across servers | Rolling update; tolerates one server loss |
| Application | API (fastapi-backend) | Replicas across servers | Rolling update; tolerates one server loss |
| Application | celery-worker | One replica per server | Updated one replica at a time |
| Application | celery-ingest | One replica per server | Updated one replica at a time |
| Application | celery-beat | Two or more replicas | Leader election; one active scheduler |
| Application | odin-ml | One replica per server | Inference continues on remaining replicas |
| Data | PostgreSQL | Three instances: one primary, two standbys, connection pooler | Streaming replication; automatic failover |
| Data | Redis with Sentinel | Replicas across servers | Sentinel promotes a replica on failure |
| Data | MinIO | Three instances, one per server, erasure coded | Objects available with one server down |
| Data | GoTrue | Cluster workload | Stateless; state held in PostgreSQL |
| Platform | kubeadm control plane and etcd | All three servers, stacked etcd | Quorum 2 of 3 |
| Platform | flannel (VXLAN) | All three servers | Pod network across servers |
| Platform | CoreDNS | Cluster DNS | Protected by a disruption budget |
| Platform | kube-proxy | All three servers | Service routing |
| Platform | kube-router | All three servers, NetworkPolicy only | flannel does not enforce policy; kube-router does |
| Platform | local-path provisioner | All three servers | Binds persistent volumes to the local data disk |
| Platform | helm-controller | Cluster workload | Applies the Odin chart; the same controller version k3s embeds |
| Platform | kube-vip | Static pod on all three servers | In-cluster VIP mode only; claims the cluster address by ARP |
2.High availability
The figures below are the acceptance targets for the kubeadm validation. They are derived from the measured k3s deployment and from the behaviour of the same data services; they are not yet measured on kubeadm. ODIN-K8S-03 section 6.1 is the test that proves them.
| Event | Service impact (target) | Recovery |
|---|---|---|
| Unplanned loss of one server | Database writes pause about 22 s during standby promotion; intermittent request errors for about 65 s until the server is marked down | Automatic. The server rejoins on return |
| Planned server reboot | None. The server is drained and the database primary moved beforehand | Automatic, one server at a time |
| Image patch | None. Zero failed requests is the acceptance criterion | Rollback to any recorded state |
| Rollback | None. Zero failed requests is the acceptance criterion | — |
| Loss of two servers | Service stopped; etcd quorum lost | Cluster state restored on the remaining server; replacement servers joined |
| Loss of the site | Service stopped | Rebuild on new servers from a backup set (section 6) |
3.Data flows
| Flow | Path |
|---|---|
| User request | Browser → customer DNS → App VIP TCP 443 → Traefik on any server (TLS termination) → web or API service → PostgreSQL primary through the connection pooler, Redis |
| File upload and download | Browser → files name → App VIP TCP 443 → Traefik → MinIO, erasure coded across the three servers |
| Document processing | API → Redis queue → celery-ingest → odin-ml inference → results stored in PostgreSQL and MinIO |
| Database replication | PostgreSQL primary → two standbys, streaming replication across the server VLAN |
| Cluster control | Servers → cluster address TCP 6443; etcd replication between servers on TCP 2379-2380; kubelet on 10250; controller-manager and scheduler on 10257 and 10259 |
| Pod network | flannel VXLAN between servers on UDP 8472, pod CIDR 10.42.0.0/16 |
| Image distribution | Release package → imported into containerd on every server; no registry in the path |
| Backup replication | Backup set created on one server → copied to the other two over SSH |
4.Change management
Every change preserves data and configuration and starts with a backup. Backups are scheduled; recovery starts from a verified backup set.
| Change | Delivery | Service impact | Data and configuration |
|---|---|---|---|
| Application update | Odin image patch containing the changed images | None | Preserved; backup taken first |
| Rollback | Previous recorded state | None | Preserved; backup taken first |
| Configuration change | Site configuration, re-applied | None | Preserved |
| Release upgrade | Odin release package, applied as a Helm upgrade | Rolling; brief database failover pause | Preserved; backup taken first |
| OS patching | Customer OS repository | None; one server at a time | Preserved |
| Certificate renewal | Customer certificate | None | Preserved |
| Kubernetes upgrade | Odin release package, one control-plane node at a time | Rolling; brief API unavailability per node | Preserved; etcd snapshot taken first |
A change starts only on a healthy cluster and completes only when every changed workload runs the new version and the cluster reports healthy. Every change is recorded in the cluster state history.
kubeadm upgrade one node at a time and the application with a Helm upgrade. The two are separate steps and the installer runs them in that order.5.Data protection
5.1Backup content
| Element | Content |
|---|---|
| Database | Online dump of the Odin database from the PostgreSQL primary, including roles |
| Files | Mirror of every MinIO bucket |
| Secrets escrow | Generated secrets and installation settings, file mode 0600 |
| Cluster state | etcd snapshot, plus /etc/kubernetes/pki (cluster CA, service-account keys, front-proxy) and the /etc/kubernetes/*.conf kubeconfigs |
| Completion marker | Written last; incomplete sets are never used for restore |
/etc/kubernetes/pki or it cannot re-admit existing nodes or decrypt existing service-account tokens. These paths are in the daily set, and a restore that omits them is not a restore.5.2Schedule
| Job | Time | Action |
|---|---|---|
| Backup | Daily 00:00 | Database, files and secrets |
| Datastore backup | Daily 00:52 | Backup with etcd snapshot and cluster PKI |
| Replication | Hourly at :40 | Every set copied to all three servers |
| Verification and archive | Daily 04:30 | Integrity check; weekly and monthly archive copies |
| Restore test | Weekly | Latest set restored into a scratch database and compared with production |
5.3Recovery objectives
| Objective | Value |
|---|---|
| RPO | 24 hours with the daily schedule; 1 hour with the hourly schedule |
| RTO, data restore | 3 to 5 minutes, increasing with data volume |
| RTO, site rebuild | 1.5 hours plus data restore time |
| Retention | 7 daily sets, 7 datastore sets, 4 weekly and 6 monthly archives |
| Copies | Every set on all three servers; off-site copy to customer storage |
6.Recovery
| Scenario | Procedure | Service impact |
|---|---|---|
| Data corruption or deletion | Verify the selected backup set in a scratch database; restore in place with the application stopped; health check and data-owner confirmation | 3 to 5 minutes |
| Permanent loss of one server | Remove the server from the cluster; provision a replacement to ODIN-K8S-01; join it as a control-plane node; backup replication refills it | None |
| Loss of the site | Provision three servers to ODIN-K8S-01; install the same release; rebuild cluster state from the etcd snapshot and cluster PKI, then volumes and data from the datastore set; verify | Until rebuild completes |
kubeadm init so the rebuilt control plane presents the same CA and the same API server identity. Restoring the PKI afterwards produces a cluster that looks healthy but cannot re-admit the existing nodes or decrypt existing service-account tokens.7.Security controls
| Area | Control |
|---|---|
| Exposure | TCP 443 to user networks only; TCP 6443 restricted to the servers and the load balancer; internal ports confined to the server VLAN |
| Transport encryption | TLS with the customer certificate, terminated on the Odin servers; Kubernetes API and etcd use mutual TLS |
| Internet | Denied in both directions |
| Operating system | RHEL: SELinux Enforcing, firewalld enabled. Ubuntu: AppArmor and ufw enabled |
| Secrets | Generated at installation; held in the cluster and in backup escrow (mode 0600); configuration directory mode 0700 |
| Software integrity | Release packages signed; packages and patches verified by SHA-256 before use |
| Administration | SSH key authentication through the customer jump host; elevation through sudo; root SSH login disabled |
| Pod Security Standards | The Odin namespace is labelled baseline. The chart is tested against that profile: no hostPath, hostNetwork, hostPID or hostIPC, no privileged containers, allowPrivilegeEscalation: false, capabilities dropped, seccompProfile set |
| Network policy | Enforced by kube-router, because flannel does not enforce policy. Node probes are explicitly allowed so kubelet health checks are not dropped |
| Container runtime | A dedicated containerd instance with its own socket and data root; it shares no state with any runtime you already run |