Fyrtal
Architecture

Nine statements Fyrtal is built on.

Each one replaces a layer of the usual cloud and Kubernetes stack with something smaller. Every statement below comes with a diagram of the usual way and of what Fyrtal does instead.

The comparisons are not a criticism. Kubernetes, Istio / Cilium, Argo CD and the rest are excellent tools that solve much bigger problems than most applications have. Fyrtal makes a different trade: less flexibility, far fewer moving parts.

  1. mTLS channels, not network perimeters
  2. Every project is its own certificate authority
  3. Five binaries, not Kubernetes + Argo + Istio / Cilium
  4. A host-side supervisor per pod, not a sidecar container
  5. localhost and env vars, not cluster DNS
  6. kTLS when both ends share a host planned
  7. One spec, planned before it is applied
  8. Data on the host, backups off it
  9. Logs go straight to your Loki, with no agents
Statement 01

mTLS channels, not network perimeters

The usual stack protects a service by where it sits: inside a virtual network, inside a subnet, inside a cluster policy, inside a mesh. Fyrtal protects it by who is calling. Each project has its own certificate authority, every service has an identity, and the receiving supervisor only accepts streams from services that list the target under uses. The network underneath can be anything.

The usual way Four nested perimeters around one call
Cloud virtual network · VPC / VNet Subnets · route tables · security groups · NAT Kubernetes · CNI · NetworkPolicy Istio / Cilium · mTLS · policies api pod + sidecar db pod + sidecar
Fyrtal One authenticated channel between hosts
Identity is checked on every stream Host A api uses: [main] supervisor project certificate Host B main postgres supervisor checks uses allowlist mTLS any network web not in uses refused
Statement 02

Every project is its own certificate authority

Bridge between projects · planned

There is no cluster-wide root that every workload shares. Each project gets a private certificate authority, which signs a certificate for every service in that project. Supervisors only accept certificates from the same project CA, so projects are separated by cryptography instead of by namespaces or separate networks: a service in one project cannot open a channel into another, even when both run on the same hosts.

A bridge is planned for the cases where two projects do need to talk: an explicit link between them, so the default stays closed and crossing a project boundary is always a deliberate choice. It is not built yet.

Fyrtal One CA per project, no trust between them
Project · shop shop CA private to this project signs service certs api cert from shop CA main cert from shop CA cache cert from shop CA Project · ledger ledger CA private to this project signs service certs web cert from ledger CA api cert from ledger CA billing cert from ledger CA refused Today a call between projects is refused. An explicit bridge between projects is planned.
Statement 03

Five binaries, not Kubernetes + Argo + Istio / Cilium

A production Kubernetes platform is a dozen separately versioned systems that someone has to install, connect and keep upgraded. Fyrtal is five Rust binaries: a control plane, the CLI, and on each Linux host an agent, an edge router for port 443, and one supervisor process per pod. There are no CRDs or operators to add, because compute, data, jobs and storage are already in the spec.

The usual way A platform you assemble yourself
What you install, wire together and upgrade etcd API server scheduler kubelet + CNI CoreDNS ingress cert-manager Helm charts Argo CD istiod sidecar proxies DB operators Each with its own config, CRDs and release cycle
Fyrtal The whole runtime
CLI · console fyrtal.yaml control plane API, scheduler, CAs Each Linux host agent spawns supervisors edge public port 443 api container supervisor one per pod main postgres supervisor one per pod Five Rust binaries under systemd on plain Linux
Statement 04

A host-side supervisor per pod, not a sidecar container

Fyrtal runs one fyrtal-supervisor process per pod to carry mutual TLS — which looks at first glance like a service-mesh sidecar. The difference is where it lives and what it owns. Instead of injecting an Envoy container and iptables redirection rules inside the pod, the supervisor is a small Rust process on the host outside the container.

Why outside the container matters: application code can never read the pod's mTLS private key or bypass the proxy — host nftables rules ensure a pod can talk only to its own supervisor. And because the same tiny process (2–4 threads) also creates the network namespace, starts and restarts the container, checks health, terminates public TLS, and collects logs, there is no extra sidecar image, no init container, and a fraction of Envoy's memory footprint.

The usual way Sidecar container inside the pod
Pod (shared network namespace) app container your workload Envoy sidecar 2nd container (~50–100 MB) istio-init + iptables traffic redirection extra container lifecycle, startup ordering & pod-side certs Extra container per pod, extra memory, iptables hijacking Separate agents still needed for logs and lifecycle
Fyrtal Host-side Rust supervisor outside the container
Linux host app container no keys · no sidecar fyrtal-supervisor host process · 2–4 threads · mTLS & private keys · public TLS termination · health checks & restarts · stdout/stderr logs & Loki · Prometheus metrics host nftables cannot bypass supervisor App never touches certificates; firewall blocks bypass One small Rust process replaces sidecar, log agent & kubelet probe
Statement 05

localhost and env vars, not cluster DNS

In Kubernetes a service name goes through CoreDNS, a virtual ClusterIP, kube-proxy rules and the CNI overlay before it reaches a pod. In Fyrtal the app gets an env var such as DATABASE_URL that points at a localhost port. The supervisor listens on that port and carries the connection to the right host over mTLS. Nothing to resolve, and the same URL works on every host.

The big plus is speed: there is no DNS lookup in front of any call, so no resolver latency, no lookup timeouts and no stale cache entries. The cost is a one-time config change when you migrate: hostnames like db.prod.svc.cluster.local have to become the injected env vars. That is a mechanical rewrite, which makes it a good job to hand to an LLM: point it at your existing manifests and let it replace the service addresses for you.

The usual way Name → DNS → virtual IP → rules → pod
app CoreDNS resolve service name ClusterIP virtual address kube-proxy iptables / IPVS pod IP CNI overlay db DB_HOST=db.prod.svc.cluster.local A DNS lookup and three rewrites before the first byte
Fyrtal An env var and a local port
Host A api localhost:5432 supervisor local listener Host B main postgres supervisor mTLS DATABASE_URL=postgres://…@localhost:5432/shop An injected env var. No DNS lookup on any call.
Statement 06

kTLS when both ends share a host

Planned · not built yet

Today a call between two pods on the same host takes the same path as a call across hosts: through the supervisor proxy, encrypted and decrypted in user space. The plan is to keep the mutual handshake and the uses check in the supervisor, then hand the session to the kernel (kTLS) so the data no longer passes through the proxy.

Today Same-host traffic through the user-space proxy
One host api main supervisor · user space TLS encrypt, then decrypt, in the proxy Same-host calls take the full user-space TLS path
Planned Handshake in the supervisor, data in the kernel
One host api main supervisor handshake + uses check Linux kernel · kTLS records encrypted and decrypted in the kernel Identity is still proven; the data path skips the proxy
Statement 07

One spec, planned before it is applied

There is no state spread across Terraform, Helm values and Argo applications. One YAML file describes the application. The control plane turns a change into a plan, shows the diff and the monthly reservation, and only then rolls it out. A failing beforeDeploy job or health check stops the rollout before running pods are replaced.

Fyrtal From file to running pods
fyrtal.yaml in your repo plan control plane diff + monthly cost you review apply beforeDeploy job migrations rolling deploy health-checked job or health check fails → rollout stops, previous pods keep serving Nothing changes on a host until the plan is applied
Statement 08

Data on the host, backups off it

Databases are not a separate operator project. PostgreSQL and Redis run as pods on an isolated btrfs volume that is snapshotted before every deploy. Encrypted dumps and continuous PostgreSQL WAL go to an S3 bucket you own, so a database can be restored to a point in time even if the host is lost.

Fyrtal Local volume, off-host recovery
Host main postgres pod btrfs volume isolated per database snapshot before every deploy Your S3 bucket · off-host encrypted dumps AES-256-GCM, key you hold WAL archive restore to any second scheduled continuous WAL push
Statement 09

Logs go straight to your Loki, with no agents

On Kubernetes, logs need a pipeline of their own: the runtime writes files, an agent such as Promtail or Fluent Bit runs on every node to tail them, and a relabeling config decides what reaches Loki. In Fyrtal the supervisor already starts every pod, so it captures the output itself. The console and CLI show the latest lines, which are kept on the host. To keep and search logs, name a Loki service of your project under spec.logs.loki and the lines of every pod and job are sent to it, labelled with project, environment, service, pod and stream. Grafana is then one more service that uses Loki.

The usual way A log pipeline on every node
Kubernetes node pod stdout / stderr log files container runtime log agent Promtail / Fluent Bit pipeline config relabeling, parsing Loki Grafana A DaemonSet on every node, plus its own config
Fyrtal The supervisor ships logs itself
Host service pod stdout / stderr job pod stdout / stderr supervisor labels: project, service, pod, stream loki a service you run grafana uses: {loki: 3100} console · CLI latest lines No agent, no DaemonSet, no address or token
fyrtal.yaml Example: one line turns it on
apiVersion: fyrtal/v1alpha1
kind: Application
metadata:
  name: shop
spec:
  zone: eu-de-1
  logs:
    loki: loki          # send the logs of every pod to the service named loki
  services:
    api:
      image: ghcr.io/acme/shop:1.12.0
      port: 8080
      replicas: 2
      uses: [main]
    loki:
      image: grafana/loki:3.2.1
      port: 3100
      health: {path: /ready, startPeriodSeconds: 60}
      resources: {cpu: 0.3, memory: 512Mi}
    grafana:
      image: grafana/grafana:11.3.0
      port: 3000
      public: true
      uses: {loki: 3100}   # Grafana reaches Loki at http://localhost:3100
  databases:
    main:
      engine: postgres
      storage: 20Gi

There is no address or token to configure, and only pods of your project can send. If Loki is away, lines wait and are sent when it is back. In Grafana, add Loki at http://localhost:3100 and query, for example, {service="api", stream="stderr"}. A service has no volume, so configure Loki to store its data in object storage if the logs should outlive its pod.