Skip to main content

Air-gapped installation

Delivery
The same stack, from your own registry

A cluster with no internet access cannot pull a single public image. Switch the stack to air-gapped and the build inventories every image it uses, writes the script that copies them into your registry, and rewrites every manifest to pull from there.

BUILD · COPY ONCE · APPLYbuildair_gapped = "true"inventory · rewritemigrate.shyour stack repositoryimages → your registryversioning/ · bommigration/migrate.shpublic registrieswhere the imagescome frommigrate.sh, run oncefrom a machine thatreaches both sidesNO INTERNETyour registryhost / project /image : same tagclusterapply -kpulls only from here
One switch, one copy, one apply. The build inventories the images and rewrites the manifests to your registry; you run the migration script once from a machine that can reach both sides; the cluster then pulls only from your registry.

Turn it on​

Air-gapped mode is a section value, not a different design:

Point the system at your registry

On the system's configuration page, set the registry host and project. That registry is where every image will be pulled from — the same one in-cluster builds push to.

Set air_gapped to true

In Sections, set the system attribute air_gapped to true.

Build

The build runs three extra steps after the other components have rendered: inventory, migration script, rewrite.

The graph does not change. The same components, links, policies and validation surface generate; only where images are pulled from moves.

What the build produces​

OutputWhat it is
versioning/versions.json · versions.mdEvery image the stack references, and every file that references it
versioning/bom.json · bom.xmlA bill of materials for the stack's images
versioning/migration/migrate.shThe script that copies every image into your registry
Rewritten kustomizationsEvery component's deploy and build kustomization pulls from your registry — <host>/<project>/<image>, keeping the original tag or digest
airgap-images-config.yamlFor images held in a custom resource field — a monitoring server's image, a database cluster's image — the field is rewritten too
airgap-patch-*.yamlFor images an operator reads from its environment or arguments, a patch on that operator's workload

The rewrite is idempotent: building again after a registry change updates the entries in place.

Copy the images, once​

migrate.sh copies registry to registry, keeping every architecture of a multi-platform image. Run it once, before the first apply, from a machine that can reach both the public registries and yours — not from inside the isolated network:

export REGISTRY_PASSWORD=<your registry password>   # or type it when prompted
versioning/migration/migrate.sh

It needs Docker with Buildx, logs in to your registry, and reports how many images succeeded and failed. It is safe to run again: a second run retries what failed. It also warns when two source images would land on the same target name.

Then apply the stack as usual: every image the rewrite covered is pulled from your registry.

→ Build and deploy

Before you rely on it​

Allow your registry in the admission policy

An image policy in the stack admits only the registries listed on it, and air-gapped mode does not change that list. Add your registry to the policy's allowed registries, or the rewritten workloads are refused at admission.

Some images cannot be rewritten automatically, and the build log names each one it meets:

  • image fields shaped as a mapping of registry and name rather than one string;
  • images embedded deeper inside custom resources, with no generic patch;
  • short image names inside an operator's environment or arguments;
  • images compiled into an operator itself.

Handle those on the component, and check the log after the first air-gapped build.

The AI interface needs its knowledge repository inside the network too: mirror it and point the MCP server at the mirror — see The knowledge layer.