Air-Gapped Kubernetes Installations & Private Registry Mirroring
Install clusters offline and mirror images into private registries.
In plain words
Air-gapped deployment is loading every sealed spare part onto the ship's manifest before the harbor bridge closes. The simple Kubernetes rule is: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
Think of it like…
Air-gapped deployment is loading every sealed spare part onto the ship's manifest before the harbor bridge closes.
Where you’ve seen it
During a controlled maintenance window, the platform operator runs cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images. Expected evidence: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters. If the run instead shows this symptom, stop and restore the last known state: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap.
Words you’ll hear
- Air-Gap
- For this lesson, Air-Gap is the controlling idea: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
- Mirror
- Mirror is the checkpoint; run
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl imagesand inspect the owner chain. Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap. - Private Registry
- Private Registry is the outcome to preserve; the cost is explicit: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.
- Verification evidence
- The evidence command is
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images. It connects the declaration to this behavior: Install clusters offline and mirror images into private registries.
Visual diagram
Theory & deep dive
How Air-Gap reaches the intended state
Install clusters offline and mirror images into private registries. Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
The concrete checkpoint is cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images; compare the Air-Gap owner, Mirror state, and Private Registry outcome instead of treating YAML acceptance as proof.
Run cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images after the change and correlate the result with Events and the owning object. Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
Mirror: failure boundary and production cost
Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap. The prerequisite contract is concrete: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline. A safe design limits blast radius, records the last good configuration, and uses cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images as a deterministic rollback checkpoint.
Capture the current state with cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap.
How it works, step by step
Step 1 of 41. Plan the lifecycle boundary
Inventory versions, capacity, state, backups, and ownership in a reversible plan: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
- Goal
- Install clusters offline and mirror images into private registries.
- Owner
- Air-Gap
When to use it & trade-offs
What it is
Install clusters offline and mirror images into private registries. Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
Why it matters: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap. The invariant at risk is specific: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters. The quickest fact check before changing the design is cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images.
When to reach for it
- Use Air-Gap to enforce this invariant: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
- Use Mirror evidence from
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl imagesin reviews and incident timelines. Install clusters offline and mirror images into private registries. - Choose the managed cloud or platform service route only when this cost is justified by governance or scale: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.
When to avoid or be careful
- Avoid assuming Air-Gap is complete after YAML submission; the required behavior is concrete: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
- Avoid treating the next symptom as random; check the owner and state with
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl imagesfirst: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap. - Avoid adopting a heavier platform wrapper before measuring its cost: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.
Native, manual, and managed paths for Air-Gap
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images.Strengths: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
Watch out: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline. Recovery must also recognize this signal: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap.
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images; the expected invariant is: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.Strengths: cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images gives immediate feedback without first building a platform layer.
Watch out: A manual change can hide drift, and unlike Air-Gap, it does not make this symptom self-documenting: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap.
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images.Strengths: Platform controls can wrap this exact behavior in policy or dashboards: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
Watch out: The added platform ownership buys value at this cost: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.
Interview signals & numbers to know
When this topic comes up
- Interview anchor: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
- Trace Air-Gap to Private Registry through Mirror; the invariant is: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
- Recognize the symptom: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap.
- Justify the cost: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.
- Verify with cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images instead of only inspecting YAML.
Benchmarks & rules of thumb
- 2
- verification directions: signature and digest
- 1
- offline image source map should be tested in a disconnected environment
- 0
- public registry fallback belongs in a strict air gap
Common mistakes & follow-ups
Common interview mistakes
- Debugging only the child object misses the Air-Gap owner contract: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters.
- Ignoring this telltale condition leads to unrelated changes: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap.
- Repeating
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl imageswithout an owner for remediation wastes retry cost. Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.
Likely interviewer follow-ups
- How would API output and runtime evidence prove this behavior: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters?
- Which owner object, logs, and Events would you inspect for this symptom-Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap-?
- At what threshold would this cost become unacceptable: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline?
cosign verify --key cosign.pub registry.internal/...@sha256:...; kubectl get imagecontentsourcepolicy; crictl images, name the failure, then justify the cost. Invariant: Air-gapped installation exports a versioned image bill, signs and transfers it through controlled media, mirrors into a private registry, and rewrites or mirrors source names on clusters. Failure: Late pulls to a public registry, an unsigned artifact, missing multi-architecture manifests, or a mirror with a changed digest make an offline install hang after bootstrap. Cost: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.Knowledge check
Put it into practice
Practice related interview Q&A
Apply Air-Gapped Kubernetes Installations & Private Registry Mirroring with generative AI interview Q&A and hands-on practice.