Moving to In-Vehicle K3s Without Making the Control Plane a Single Point of Failure

When you move from statically partitioned ECUs to a K3s node on a zonal compute platform, you add a failure domain the old architecture never had: the orchestrator. If the scheduler, the datastore or the API server is down, the vehicle still has to boot, show the camera and feed the watchdog. A migration budget holds up when every euro spent on orchestration either keeps those functions independent of the control plane or buys a recovery metric you can measure on a test bench.

What the old stack got right without trying

The legacy layout of one function per ECU, or one function per hypervisor partition with fixed systemd units, gave you fault containment through physical separation. A memory leak in the media stack could not starve the gateway, because they never shared a kernel. Consolidation gets rid of that separation in exchange for density, per-service updates and a single place to deploy software, and the budget conversation should say so openly. What you are buying is fewer boxes and faster delivery. What you are paying is a freedom-from-interference argument you now have to build in software, with cgroups v2, CPU pinning and memory reservations, plus the test effort to show it holds under load.

The part that hurts: a corrupted datastore at ignition off

The failure mode that catches most teams has nothing to do with pod scheduling. It is an unclean power loss. If the ignition is cut while K3s is writing its embedded datastore, the next cold boot can find the database corrupted, and the server either refuses to start or comes up empty. A running kubelet will keep existing pods alive when the API server disappears, but after a cold boot nothing is running yet, so every workload that needs the scheduler to start simply never appears. The fix is to treat the control plane state as disposable: keep the desired state as signed manifests inside the read-only A/B image, rebuild the datastore from them on every boot, and write nothing to persistent state that the vehicle cannot afford to lose. The cost is a stricter release process and a longer cold start, by our bench estimate a few seconds on a mid-range SoC, and what you get for it is a boot path with no dependency on whatever happened to be on disk when the battery was disconnected.

The decision rule is simple: if a function has to run while the API server is unreachable, it does not belong to the scheduler, so run it as a static pod or a systemd unit pinned to the node, and let the orchestrator observe it without owning it.

Pricing isolation in numbers the board will accept

Every reservation takes capacity away from consolidation, so tie each one to the metric it protects. Setting memory.min to 256 MiB on the health supervisor that feeds the hardware watchdog means quality-managed workloads can never reclaim that memory, and the trade-off you report is fewer infotainment containers per node against a supervisor that keeps responding during an out-of-memory storm, which you verify by running fault injection with the PSI memory counters saturated. Dual-bank A/B storage roughly doubles the flash the system image needs, and it buys rollback within one reboot without a network connection, a recovery time you can state in a contract. Functions covered by functional safety standards such as ISO 26262 stay on the safety island or in a certified RTOS partition under the hypervisor, because cgroups do not yet support an ASIL-level argument, and keeping them out of K3s removes the most expensive certification item from the migration entirely. Our own estimate is that orchestration overhead, the agent, the containerd runtime and the reconstructed datastore, takes roughly a fifth of the RAM freed by retiring the old ECUs, which is the number to compare against the BOM savings.

Can safety-relevant workloads run as pods under K3s once the migration is done?

Not with an argument an assessor will currently accept. Keep ASIL functions on a safety island or a certified RTOS partition, run quality-managed and supervision workloads under K3s, and have the orchestrator report the health of the safety partition instead of controlling it. That split decides your next design question: which signals cross the hypervisor boundary, and what the QM side is allowed to do when one of them goes silent.

Back to SDVOrchestration · Domains

← Back to SDVOrchestration
Engineering & Architecture Brief

Moving to In-Vehicle K3s Without Making the Control Plane a Single Point of Failure

When you move from statically partitioned ECUs to a K3s node on a zonal compute platform, you add a failure domain the old architecture never had: the orchestrator. If the scheduler, the datastore or the API server is down, the vehicle still has to boot, show the camera and feed the watchdog. A migration budget holds up when every euro spent on orchestration either keeps those functions independent of the control plane or buys a recovery metric you can measure on a test bench.

What the old stack got right without trying

The legacy layout of one function per ECU, or one function per hypervisor partition with fixed systemd units, gave you fault containment through physical separation. A memory leak in the media stack could not starve the gateway, because they never shared a kernel. Consolidation gets rid of that separation in exchange for density, per-service updates and a single place to deploy software, and the budget conversation should say so openly. What you are buying is fewer boxes and faster delivery. What you are paying is a freedom-from-interference argument you now have to build in software, with cgroups v2, CPU pinning and memory reservations, plus the test effort to show it holds under load.

The part that hurts: a corrupted datastore at ignition off

The failure mode that catches most teams has nothing to do with pod scheduling. It is an unclean power loss. If the ignition is cut while K3s is writing its embedded datastore, the next cold boot can find the database corrupted, and the server either refuses to start or comes up empty. A running kubelet will keep existing pods alive when the API server disappears, but after a cold boot nothing is running yet, so every workload that needs the scheduler to start simply never appears. The fix is to treat the control plane state as disposable: keep the desired state as signed manifests inside the read-only A/B image, rebuild the datastore from them on every boot, and write nothing to persistent state that the vehicle cannot afford to lose. The cost is a stricter release process and a longer cold start, by our bench estimate a few seconds on a mid-range SoC, and what you get for it is a boot path with no dependency on whatever happened to be on disk when the battery was disconnected.

The decision rule is simple: if a function has to run while the API server is unreachable, it does not belong to the scheduler, so run it as a static pod or a systemd unit pinned to the node, and let the orchestrator observe it without owning it.

Pricing isolation in numbers the board will accept

Every reservation takes capacity away from consolidation, so tie each one to the metric it protects. Setting memory.min to 256 MiB on the health supervisor that feeds the hardware watchdog means quality-managed workloads can never reclaim that memory, and the trade-off you report is fewer infotainment containers per node against a supervisor that keeps responding during an out-of-memory storm, which you verify by running fault injection with the PSI memory counters saturated. Dual-bank A/B storage roughly doubles the flash the system image needs, and it buys rollback within one reboot without a network connection, a recovery time you can state in a contract. Functions covered by functional safety standards such as ISO 26262 stay on the safety island or in a certified RTOS partition under the hypervisor, because cgroups do not yet support an ASIL-level argument, and keeping them out of K3s removes the most expensive certification item from the migration entirely. Our own estimate is that orchestration overhead, the agent, the containerd runtime and the reconstructed datastore, takes roughly a fifth of the RAM freed by retiring the old ECUs, which is the number to compare against the BOM savings.

Technical FAQ: Can safety-relevant workloads run as pods under K3s once the migration is done?

Not with an argument an assessor will currently accept. Keep ASIL functions on a safety island or a certified RTOS partition, run quality-managed and supervision workloads under K3s, and have the orchestrator report the health of the safety partition instead of controlling it. That split decides your next design question: which signals cross the hypervisor boundary, and what the QM side is allowed to do when one of them goes silent.

Related Architecture Specifications (AUTOMOTIVESDV): reliablesdv.com · sdvprotocol.com · selfdrivesim.com

More Technical Articles on sdvorchestration.com

Kubernetes on Wheels: Deploying K3s in Production Autonomous Vehicles →Deterministic Container Scheduling: Deep Dive into Linux cgroups v2 →Zero-Downtime Dual-Bank A/B OTA Updates in High-Availability Compute →Moving the Vehicle Stack Without Moving Its Failure Boundaries →