At an air-gapped factory, what isn't on the USB stick won't run
Shipping AI to an offline plant takes a self-contained release, updates that fail safely and monitoring that does not mistake silence for health.
In brief
- The K3s binary and airgap image tarball must come from the same release; sign the whole package so the machine on site can verify it offline.
- Do not rely on Triton's default or POLL mode to update models: copy the full version into a new directory, then issue the load command.
- Azure IoT Edge's default TTL keeps only two hours of telemetry, and the cloud portal can still report 200 OK after a machine has lost its connection.
By default, Azure IoT Edge keeps two hours of telemetry when a device goes offline. A factory link that fails on Friday night and comes back on Monday morning is down for about 60.
Telemetry is only one of the things that breaks when you stand beside an edge machine on a defect-inspection line with a USB stick in your pocket and no network but the plant’s own. There is no docker pull, no pip install and no cloud dashboard. Whatever is not on the stick will not run today.
Some customers separate their production network from the internet for security. Others simply have no connection.
Training the model is the easier part. The hard part is three operational jobs: packaging everything the site needs, making updates that can be undone when they fail, and monitoring well enough to know what the machine is really doing.
One principle covers all three. In an air-gapped environment, every assumption about the network has to be written down as a file, a check or a numeric limit. The three sections below follow a single deployment.
A release must be self-contained
Take a single-node K3s cluster running Triton Inference Server. It serves a scratch-detection model, alongside a collector that sends metrics back to a central site. According to the K3s air-gap installation documentation, images can come from the upstream registry, a registry mirror or an airgap image tarball.
With nobody on site to run a private registry, the third option is the practical one. Where there is no private OCI registry, K3s allows images to be copied to each node by hand. That is laborious across many machines, but for a handful of edge boxes it is far simpler than setting up and maintaining a registry.
The first trap is versioning: K3s requires the binary and the airgap image archive to come from the same release. Download the binary on Monday and the tarball on Thursday, and they can easily drift apart without anyone noticing. The mismatch usually surfaces once you are already inside the factory.
Each delivery should therefore be a release package built by a script, never assembled by hand. It carries a manifest recording versions and the checksum of every file:
usb/
release-2026.10.1.tar # everything listed below
release-2026.10.1.sigstore.json # signature bundle for the tarball
# inside the tarball:
manifest.sha256 # checksum of each file
k3s/ # binary + airgap images, SAME version
images/app-images.tar # application images
models/scratch-detector/3/model.onnx
The signature is the part teams tend to skip. Sigstore’s bundle format supports offline signature verification, so the edge machine can confirm, without calling out, that the tarball on the USB stick is the one your team signed. When the customer’s security department asks how you know the stick was not swapped, you already have an answer.
Updates: design for the failure
In the cloud, a bad deployment is usually rolled back within minutes. In a factory, it can leave the line running without defect inspection until someone drives out to fix it. When choosing an update mechanism, look past whether it can install the new version and ask what state the machine is in when the update fails.
At the operating system layer, Mender splits the disk into two A/B partitions. If the new version fails to boot, the bootloader detects the problem and returns to the previous one. Mender also has a standalone mode for fully offline sites, which lets you apply an update locally, for example from a USB stick. You get automatic rollback without a server.
At the model layer, Triton has two behaviors you need to know. In its default mode, it loads models at startup and then ignores any change to the model repository while the server is running. Copy a new model into the directory and Triton keeps serving the old one. For the new version to take effect, you must restart the server or switch to explicit model control.
POLL mode is dangerous in the opposite direction. According to NVIDIA’s documentation, Triton may see the repository partway through a change, before copying has finished, and behave unexpectedly. Copying files from a USB stick into a polled directory is the easiest way to trigger this.
Explicit mode is the safe route: copy the complete model version into a new directory, check it, and only then issue the load command. Triton offers a further advantage here: if a reload fails, the model already running stays in place. An update script might look like this:
#!/usr/bin/env bash
set -euo pipefail
USB=/media/usb
REL=release-2026.10.1
# 1. Verify the signature offline before touching anything
cosign verify-blob --key /etc/fde/release.pub \
--bundle "$USB/$REL.sigstore.json" "$USB/$REL.tar"
# 2. Extract to a separate directory and check checksums against the manifest
mkdir -p "/opt/releases/$REL"
tar -xf "$USB/$REL.tar" -C "/opt/releases/$REL"
(cd "/opt/releases/$REL" && sha256sum -c manifest.sha256)
# 3. Add the new model version without overwriting the old one
cp -r "/opt/releases/$REL/models/scratch-detector/3" /models/scratch-detector/
# 4. Triton runs with --model-control-mode=explicit: request a reload
curl -fsS -X POST localhost:8000/v2/repository/models/scratch-detector/load
If step 4 fails, the old model version keeps serving and you have logs to take away for analysis. Every step in the process should share this property: on failure, stop at the last known good state.
Does green on the portal mean the machine is healthy?
This part surprises people most. Azure IoT Edge needs to connect to IoT Hub once after the runtime is installed. From then on, the device and those downstream of it can run with an intermittent connection or none at all. Yet when the device loses the internet, its status in the Azure portal may still read 200 OK.
Azure is not alone in this. Any monitoring system that only waits for bad news will go quiet when you need it most. Monitor with an active signal: send a timestamped heartbeat and raise an alert when it stops, rather than waiting for the machine to report an error.
The second trap is the buffer. When offline, IoT Edge stores telemetry locally, limited by a time-to-live (TTL) and disk capacity, and the default TTL is only two hours. Prometheus in Agent mode also writes data to disk when the receiving end is unreachable, but only for a limited period.
The 2021 post introducing that feature put the limit at two hours. The figure may have changed in later versions, so check the documentation for the one you run.
Now do the arithmetic on that 60-hour weekend, assuming the link from the factory to the central site is down from Friday night to Monday morning.
With IoT Edge’s default two-hour TTL, the buffer holds only 2 of the 60 hours, and the other 58 hours of data are lost. Those include the night shifts you need to see to know whether the model drifts as the lighting in the plant changes.
OpenTelemetry Collector offers a better option. With a storage extension configured, the telemetry queue lives on disk and fully replaces the in-memory queue, so data survives a restart.
If you size the disk for the longest outage the customer will accept, data retention becomes a number the two of you have agreed, where before it was whatever the tool shipped with.
The mistakes that keep recurring
The most common mistake is treating a networked lab as a rehearsal for the factory. Until you have installed the entire release on a machine with its network cable unplugged, you do not know whether the release is complete.
Another is leaving defaults alone: Triton’s default model-loading mode, the two-hour TTL, the in-memory queue. Each makes sense in the cloud, and each is wrong on the factory floor.
A third is never rehearsing a rollback. An A/B mechanism can be trusted only once you have watched the machine return to the old version on the customer’s own hardware.
The last is trusting the cloud dashboard. If finding out whether a machine is running means going through the internet, you need to add a local screen for the operations engineers on site.
Turn this skill into an edge in your job search
When reading FDE job descriptions, look for phrases such as “air-gapped”, “on-prem”, “edge” or “disconnected environments”. They signal that the job calls for these skills.
On your résumé, go beyond “Kubernetes experience”. Say that you designed an offline update process with signing and rollback, and state how many hours of network loss your buffer can withstand.
To prepare for an interview, answer this question out loud: “The factory has no internet, and every month you have to replace the model on a few edge machines. How do you bring the new version in, how does the machine know the package was not swapped, and what happens to the line if the new model fails to load?”
A convincing answer covers four points: a version-matched release package with checksums, a signature verified offline, models loaded in explicit mode so the old version keeps running on failure, and a heartbeat to confirm the update succeeded. Any point you miss is where you need more practice.
On the factory floor, few people remember your model’s accuracy to the percentage point. They remember the update that failed while the line kept running.
Was this article useful?
Thanks for the feedback!
7 sources
- Air-Gap Install | K3s · 2026-10-07
- Operate Azure IoT Edge devices offline | Microsoft Learn · 2026-03-02
- Model Management, NVIDIA Triton Inference Server
- Introduction | Mender documentation
- Introducing Prometheus Agent Mode, an Efficient and Cloud-Native Way for Metric Forwarding · 2021-11-16
- Exporter Helper: Persistent Queue, Storage, and Retry Settings (OpenTelemetry Collector)
- Verifying Signatures | Sigstore documentation