Interview's MateKubernetes
Interview's Mate

Kubernetes

K8s · Workloads · GitOps · Cloud

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Kubernetes topics
Lesson 156/ 160
08. Cluster Administration & Managed Cloud Kubernetes

Air-Gapped Kubernetes Installations & Private Registry Mirroring

Install clusters offline and mirror images into private registries.

AdvancedAir-Gap · Mirror · Private Registry3 quiz questions
Practice DevOps Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

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 images and 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

Loading interactive 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.

Verify Mirror, not only object creation

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.

Key takeaway: Air-Gap is implemented only when this invariant remains observable: 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.

Recover from Mirror drift

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.

Key takeaway: Accept the trade-off consciously: Private mirroring controls supply chain and outbound access, but bundle refresh, storage, key custody, promotion, and certificate trust become an owned release pipeline.

How it works, step by step

Step 1 of 4
Platform planner

1. 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.

Air-Gap contract → owned state
Key numbers at this step
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 images in 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 images first: 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

Repeatable infrastructure control
Best for: Install clusters offline and mirror images into private registries. A concrete incident check is 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.

Manual cluster mutation
Best for: Quickly testing the Mirror assumption with 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.

Managed cloud or platform service
Best for: Teams that need Private Registry integrated with guardrails; the evidence path is 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 images without 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?
Interview tip: Interview sequence: state the invariant, run 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

Loading quiz

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.

Open DevOps Q&A →Tech Learn Q&A
Previous topic
Running Distributed AI Training & Inference (vLLM, Ray / KubeRay) on K8s
Next topic
CKA, CKAD & CKS Certification Exam Roadmap & Tips