Moving a Domain Controller from systemd Units to K3s Without Losing Its Failure Behaviour
Your current domain controller already has a working failure model. It is not elegant: a fixed set of systemd units, static cgroup limits written years ago, and a supervisor that restarts a crashed process in a bounded, known time. Migrating to in-vehicle container orchestration replaces that bounded restart with a reconciliation loop whose timing is eventual. The budget conversation starts there, because that substitution is the single thing your safety engineers will ask about first.
What the old stack got right
A static Linux image with hand-tuned units fails in predictable ways. When the perception bridge dies, systemd restarts it from a local unit file, with no network, datastore or scheduler decision in the path, so the worst-case restart latency is a property of the binary and the kernel alone. Under K3s the same restart goes through kubelet, which compares desired and actual state and acts on its next sync. That works fine for a media indexer and poorly for anything with a hard deadline. What you get back is per-service OTA, workload density and declarative rollouts. What you give up is a restart path you can reason about without reading a control loop. Write that trade into the budget as a line item instead of letting someone discover it during integration testing.
The failure that decides the architecture
The failure mode to design around is the control plane stalling on the vehicle's own SoC, typically when the embedded datastore blocks on a slow flash write during a dual-bank OTA, so kubelet loses its lease and the node goes NotReady while every workload on it is still healthy. If liveness probes or eviction policies depend on API reachability, the orchestrator will tear down perfectly good pods in response to its own outage, and in a car that can mean the camera fusion service restarting at speed because the update agent saturated eMMC. The fix is structural. Critical workloads run as static pods that kubelet starts from local manifests whatever the API server is doing, eviction is disabled for them, and their memory is reserved through cgroups v2 memory.min so the OOM killer reaches the infotainment tier first. This is where cgroups v2 matters as a version: the unified hierarchy is what makes protection inherit cleanly down the tree, which the split v1 controllers never guaranteed. Then put an independent hardware watchdog with a 200 ms liveness deadline in front of the safety-relevant partition, so a hung node is detected by something that does not run on Kubernetes at all.
A rule you can apply per service
If a service's failure has to be detected and contained faster than kubelet's reconciliation can be shown to act, it stays outside the orchestrator's restart authority, either as a static pod with local supervision or in a separate partition under the hypervisor, and only services that can tolerate eventual recovery get handed to the scheduler.
The part that hurts
Memory goes first. The K3s server, kubelet, containerd and image layers sit on top of what used to be a lean image, and our estimate for a typical domain controller is 30 to 40 percent more resident RAM before you add a single workload, which you either buy back as silicon or claw back by moving the control plane off the safety SoC entirely. The second cost is the dual-running period, where the legacy units and the orchestrated services ship side by side so that rollback stays a bank swap and not a field campaign, and an honest estimate is two release cycles of doubled integration and validation effort. The third cost cannot be shortened. Under automotive functional safety standards such as ISO 26262, the orchestrator will never be part of the safety argument, so the safety case has to be rewritten around freedom from interference: you prove that a misbehaving scheduler, a runaway pod or a corrupted manifest cannot starve the critical partition of CPU, memory or I/O bandwidth. Each of those costs buys something measurable, namely independent OTA of non-safety services, higher consolidation per ECU, and rollback in a single reboot, and the budget holds up only when every line points at one of those.
Technical FAQ: Can we run the K3s control plane on the same SoC as the safety partition to save hardware?
You can, provided every critical workload survives a control plane stall without intervention. That means static pods, no API-dependent probes, reserved memory and an external watchdog. If any critical path still waits on the API server, the hardware you saved will come back as validation effort and field risk. The next decision is whether a small companion core hosting the control plane costs less than proving it can never interfere.