Disconnected Environments OpenShift
Complete guide to OpenShift disconnected and air-gapped environments. Mirror registry, oc-mirror, OLM, OSUS, IDMS, upgrades, and enclave support overview.
π‘ Quick Answer: A disconnected OpenShift environment is any cluster without full internet access β from restricted networks with firewalls to fully air-gapped installations. Key components: mirror registry (image storage), oc-mirror (mirroring tool), IDMS/ITMS (pull redirection), OLM with mirrored catalogs (Operators), and OSUS (upgrade graph). Red Hat recommends oc-mirror v2 + Agent-based Installer + local OSUS.
The Problem
Many organizations β government, defense, financial services, healthcare, telco β must run OpenShift clusters without internet access. OpenShiftβs automation depends on pulling images, catalogs, and update graphs from public registries. Without a structured disconnected strategy:
- Installation fails at image pull
- Operators canβt be installed or updated
- Cluster upgrades are blocked
- Security patches canβt be applied
- Multi-cluster management becomes chaotic
The Solution
Disconnected Environment Types
| Type | Internet Access | Physical Separation | Transfer Method |
|---|---|---|---|
| Air-gapped | None | Physical gap | USB/disk transport |
| Disconnected | None | Logical separation | Internal network only |
| Restricted network | Limited (firewall/proxy) | Firewall boundary | Proxy/allowlist |
Component Architecture
graph TD
subgraph Internet
RH[Red Hat Registries<br/>quay.io, registry.redhat.io]
CIN[Cincinnati API<br/>api.openshift.com]
end
subgraph Bastion / Connected Side
OCM[oc-mirror v2] --> |pulls| RH
OCM --> |creates| TAR[Archive on Disk]
end
subgraph Disconnected Cluster
MR[Mirror Registry] --> |IDMS redirect| CVO[ClusterVersion Operator]
MR --> |CatalogSource| OLM[OLM / OperatorHub]
OSUS[OSUS Operator] --> |graph| CVO
MR --> |serves images| NODES[Worker Nodes]
end
TAR --> |transfer| MR
style RH fill:#EE0000,color:white
style MR fill:#76B900,color:white
style OSUS fill:#4CAF50,color:whiteThe Disconnected Lifecycle
| Phase | Component | Article |
|---|---|---|
| 1. Registry | Deploy mirror registry | Mirror Registry Guide |
| 2. Mirror | Mirror images with oc-mirror | oc-mirror Guide |
| 3. Redirect | Configure IDMS/ITMS | IDMS/ITMS Guide |
| 4. Install | Agent-based disconnected install | Disconnected Install |
| 5. Operators | OLM with mirrored catalogs | OLM Disconnected |
| 6. Upgrades | OSUS + mirrored releases | OSUS Guide |
| 7. Convert | Connected β disconnected | Conversion Guide |
Red Hatβs Recommended Stack
- oc-mirror v2 β single tool for all mirroring (replaces v1)
- Agent-based Installer β preferred disconnected install method
- OSUS β local upgrade graph for ClusterVersion operator
- IDMS/ITMS β replaces deprecated ICSP for image pull redirection
Quick Reference: Key Commands
# Mirror images (partially disconnected)
oc mirror --v2 -c imageset-config.yaml \
--workspace file:///opt/workspace \
docker://mirror.example.com:8443
# Mirror to disk (fully air-gapped)
oc mirror --v2 -c imageset-config.yaml \
file:///mnt/transfer
# Disk to mirror (in disconnected network)
oc mirror --v2 -c imageset-config.yaml \
--from file:///mnt/transfer \
docker://mirror.example.com:8443
# Apply generated resources
oc apply -f working-dir/cluster-resources/
# Check upgrade availability
oc adm upgrade
# Disable default OperatorHub
oc patch OperatorHub cluster --type json \
-p '[{"op":"add","path":"/spec/disableAllDefaultSources","value":true}]'Enclave Support (oc-mirror v2)
For environments with multiple security enclaves behind intermediate disconnected networks:
Internet β Bastion β Enterprise Registry β Enclave 1 Registry
β Enclave 2 Registryoc-mirror v2 supports multi-enclave workflows with registries.conf files and incremental archive generation per enclave.
Best Practices
- Start with oc-mirror v2 β v1 is deprecated, v2 generates IDMS/ITMS and handles incremental mirroring
- Mirror incrementally β first mirror is large (100s of GB), subsequent ones are delta-only
- Test the full lifecycle in staging β mirror, install, upgrade, Operator install
- Automate mirror refresh β schedule regular oc-mirror runs on the connected bastion
- Document your image inventory β know exactly which images your workloads need
- Plan storage carefully β mirror registries grow quickly with multiple OCP versions and Operators
Key Takeaways
- Disconnected OpenShift requires 7 components: mirror registry, oc-mirror, IDMS/ITMS, OLM catalogs, OSUS, Agent installer, and network configuration
- Each component has a dedicated guide in this series β follow them in order for a complete setup
- oc-mirror v2 is the central tool that generates all required Kubernetes resources
- Red Hatβs recommended path: oc-mirror v2 + Agent-based Installer + local OSUS
- Incremental mirroring minimizes ongoing data transfer after initial setup
- Multi-enclave support enables centralized mirroring for multiple security zones

Recommended
Kubernetes Recipes β The Complete Book100+ production-ready patterns with detailed explanations, best practices, and copy-paste YAML. Everything in one place.
Get the Book βLearn by Doing
CopyPasteLearn β Hands-on Cloud & DevOps CoursesMaster Kubernetes, Ansible, Terraform, and MLOps with interactive, copy-paste-run lessons. Start free.
Browse Courses βπ Deepen Your Skills β Hands-on Courses
Courses by CopyPasteLearn.com β Learn IT by Doing
