In highly regulated sectors such as financial services, defense, intelligence, energy grids, and healthcare, development teams cannot adopt public cloud code generation platforms. Corporate compliance frameworks, strict data loss prevention (DLP) mandates, and zero-trust security postures forbid sending proprietary codebases, infrastructure playbooks, or API credentials to external SaaS endpoints. For these organizations, software delivery velocity cannot come at the expense of sovereign perimeter security.
Deploying IBM watsonx Code Assistant entirely on-premises inside a disconnected (air-gapped) Red Hat OpenShift Container Platform (OCP) cluster solves this fundamental tension. By hosting container runtimes, underlying IBM Granite foundation models, and automation integration planes strictly within internal network perimeters, enterprise platform engineers deliver enterprise-grade generative AI code assistance without a single byte of telemetry or proprietary logic leaking to the public internet.
At 365Finds, our institutional assessment is unequivocal: for any organization subject to banking banking secrecy laws, military ITAR/defense certifications, or critical national infrastructure security standards, partial or hybrid "proxy" architectures are an unacceptable compromise that will fail rigorous compliance audits. The only production-viable architecture is a fully air-gapped deployment governed by Red Hat OpenShift, backed by Red Hat OpenShift Data Foundation (ODF) Ceph block storage, and synchronized via offline container registry mirroring.
Architectural Topology & Sizing Principles
An enterprise-ready air-gapped deployment bifurcates into two distinct network zones: the Connected Bastion Staging Zone (temporary or network-isolated external access) and the Air-Gapped Cluster Core (zero internet egress/ingress).
[ External Internet / Entitled Registries ]
|
(cpd-cli case-download & mirror)
v
[ Connected Bastion / Portable Media ]
|
(Physical transfer / Internal Push)
v
[ Enterprise Private Registry (Quay / Harbor) ]
|
+--------------+-------------------------------------+
| Internal Air-Gapped Red Hat OpenShift Cluster |
| |
| [ ImageDigestMirrorSet / Global Pull Secrets ] |
| | |
| [ IBM Software Hub / CP4D Control Plane ] |
| | |
| [ IBM watsonx Code Assistant (WCA) Operator ] |
| +--------------------------------------------+ |
| | Inference Engine (IBM Granite Models) | |
| | GPU Acceleration: NVIDIA A100 / L40S Nodes | |
| | Storage: ODF Ceph RBD (Block, RWO) | |
| | Shared Config: ODF CephFS (File, RWX) | |
| +--------------------------------------------+ |
| ^ |
| | (Internal Route / TLS) |
| v |
| [ Red Hat Ansible Automation Platform (AAP) ] |
+----------------------------------------------------+
^
| (Intranet Mutual TLS / Internal Root CA)
v
[ Developer Workstations / IDEs (VS Code via redhat.ansible) ]
1. Hardware & Compute Sizing
Deploying generative code models locally demands rigorous compute allocation:
- GPU Worker Nodes: A minimum of two dedicated worker nodes, each provisioned with dual NVIDIA A100 (80GB VRAM) or NVIDIA L40S/H100 accelerators. 365Finds strongly advises allocating a minimum of 80GB VRAM per GPU slice to accommodate the memory footprint of IBM Granite 20B/34B code models alongside inference KV caches under multi-tenant developer load.
- CPU and System Memory: Minimum 32 physical CPU cores and 128 GB RAM per GPU worker node to prevent context serialization bottlenecks during high-throughput token processing.
- Control Plane & Utility Nodes: OpenShift control plane nodes must remain isolated from heavy model workloads to maintain cluster scheduling stability.
2. Storage Architecture Requirements
IBM watsonx Code Assistant requires two distinct storage performance tiers:
- Block Storage (ReadWriteOnce - RWO): Red Hat OpenShift Data Foundation (
ocs-storagecluster-ceph-rbd). Used for database persistence, model serving scratch volumes, and local vector indices. 365Finds rejects NFS for model serving; Ceph RBD block devices deliver the microsecond random I/O required during model state loading and high-frequency context queries. - File Storage (ReadWriteMany - RWX): Red Hat OpenShift Data Foundation (
ocs-storagecluster-cephfs). Used for cross-pod shared configurations, operational logs, and multi-replica synchronization.
Phase 1: Two-Stage Mirroring to Private Container Registries
Because the production OpenShift cluster cannot connect to the IBM Entitled Registry (cp.icr.io) or Red Hat registries, engineers must stage container images and Granite foundation model weights onto an internal private registry (such as Red Hat Quay or Harbor) using cpd-cli.
Step 1.1: Environment Variable Baseline
Configure a centralized environment setup script (cpd_vars.sh) on the bastion host:
#!/usr/bin/env bash
export OCP_URL="https://api.ocp-airgap.internal.corp:6443"
export OCP_USERNAME="platform-admin"
export OCP_PASSWORD="<cluster-admin-password>"
export IBM_ENTITLEMENT_KEY="<ibm-entitlement-key>"
export PRIVATE_REGISTRY="quay.registry.internal.corp:8443"
export PRIVATE_REGISTRY_USER="registry-admin"
export PRIVATE_REGISTRY_PASSWORD="<registry-admin-password>"
export VERSION="5.0.3"
export COMPONENTS="cpfs,cpd_platform,ibm-licensing,ibm-cert-manager,watsonx_ai,ibm-watsonx-ai-ifm,wca"
export PROJECT_CPD_INST_OPERATORS="ibm-operators"
export PROJECT_CPD_INST_OPERANDS="ibm-common-services"
export STG_CLASS_BLOCK="ocs-storagecluster-ceph-rbd"
export STG_CLASS_FILE="ocs-storagecluster-cephfs"
Step 1.2: Download CASE Bundles & Model Weights
On the internet-connected workstation, download the required Container Application Software for Enterprises (CASE) packages:
# Authenticate to the IBM Entitled Registry
cpd-cli manage login-entitled-registry ${IBM_ENTITLEMENT_KEY}
# Download CASE bundles including Granite Foundation Model packages
cpd-cli manage case-download \
--components=${COMPONENTS} \
--release=${VERSION}
Step 1.3: Mirroring Images to Internal Private Registry
If using direct network routing from an edge bastion, execute the mirror command directly. For completely isolated networks, mirror first to a local intermediary registry (127.0.0.1:12443), transfer the disk media across the air-gap boundary, and mirror inward:
# Authenticate to internal enterprise registry
cpd-cli manage login-private-registry \
${PRIVATE_REGISTRY} \
${PRIVATE_REGISTRY_USER} \
${PRIVATE_REGISTRY_PASSWORD}
# Mirror all operator images, core services, and Granite model artifacts
cpd-cli manage mirror-images \
--components=${COMPONENTS} \
--release=${VERSION} \
--target_registry=${PRIVATE_REGISTRY} \
--arch=x86_64
Step 1.4: Configure OpenShift Image Digest Mirroring & Global Pull Secret
Apply the mirrored image routing to the target OpenShift cluster so that all container pull requests destined for cp.icr.io or icr.io are redirected to the local internal registry:
# Add private registry credentials to OpenShift cluster global pull secret
cpd-cli manage add-icr-cred-to-global-pull-secret \
--entitled_registry_key=${IBM_ENTITLEMENT_KEY}
# Apply ImageDigestMirrorSet (IDMS) manifests to cluster nodes
cpd-cli manage apply-image-digest-mirror-set \
--release=${VERSION} \
--target_registry=${PRIVATE_REGISTRY}
Phase 2: Cluster Foundation & Ingress Preparation
Before applying application manifests, the air-gapped OpenShift environment must be hardened to support long-lived AI generation workflows.
Step 2.1: Adjust Ingress HAProxy Timeouts
Inference requests against large codebases and complex multi-task generation workflows can exceed default ingress timeout windows. Extend OpenShift router timeouts to prevent dropped HTTP connections:
oc annotate route --all \
--namespace=${PROJECT_CPD_INST_OPERANDS} \
haproxy.router.openshift.io/timeout=600s \
--overwrite
Step 2.2: Apply Cluster Infrastructure Components
Authenticate cpd-cli directly to the disconnected cluster API server:
cpd-cli manage login-to-ocp \
--server=${OCP_URL} \
--username=${OCP_USERNAME} \
--password=${OCP_PASSWORD}
# Apply shared services, cert-manager, and cluster licenses
cpd-cli manage apply-cluster-components \
--release=${VERSION} \
--license_acceptance=true \
--cert_manager_ns=cert-manager \
--shared_service_ns=${PROJECT_CPD_INST_OPERANDS}
Phase 3: Operator Deployment & Custom Resource (CR) Provisioning
With the core dependencies established, proceed with the deployment of the Operator Lifecycle Manager (OLM) resources and the IBM watsonx Code Assistant custom resource.
Step 3.1: Install the WCA Operator via OLM
Deploy the operator catalog and subscription referencing the private internal registry:
cpd-cli manage apply-olm \
--release=${VERSION} \
--components=wca \
--cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS}
Verify that the operator subscription has transitioned to Succeeded:
oc get csv -n ${PROJECT_CPD_INST_OPERATORS} | grep -i wca
Step 3.2: Provision the Custom Resource (CR)
Apply the service Custom Resource, explicitly mapping the ODF Ceph block and file storage classes:
cpd-cli manage apply-cr \
--components=wca \
--release=${VERSION} \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--block_storage_class=${STG_CLASS_BLOCK} \
--file_storage_class=${STG_CLASS_FILE} \
--license_acceptance=true
Step 3.3: Verification of Model Serving and Pod Convergence
Model weight unpacking and container convergence in air-gapped clusters require time depending on disk read bandwidth. Monitor the reconciliation loop:
# Query the custom resource status via cpd-cli
cpd-cli manage get-cr-status \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--components=wca
# Inspect operational pod status in the operand namespace
oc get pods -n ${PROJECT_CPD_INST_OPERANDS} -l "app.kubernetes.io/name in (wca,watsonx-ai)"
Ensure that all inference pods, serving containers, and TGIS (Text Generation Inference Server) pods reach the Running and Ready states without memory crashloops (OOMKilled).
Phase 4: Integrating Local Ansible Automation Platform (AAP)
For infrastructure automation teams utilizing Red Hat Ansible Automation Platform, IBM watsonx Code Assistant provides AI-assisted playbook generation and task completions through Ansible Lightspeed. In an air-gapped configuration, AAP must bypass public internet brokers entirely.
Step 4.1: Internal Service Routing & TLS Certificates
Identify the internal Route URL generated for the IBM watsonx Code Assistant serving interface:
export WCA_ROUTE=$(oc get route wca-api -n ${PROJECT_CPD_INST_OPERANDS} -o jsonpath='{.spec.host}')
echo "Internal WCA Endpoint: https://${WCA_ROUTE}"
Export the OpenShift internal ingress root CA or replace the route certificate with your enterprise Public Key Infrastructure (PKI) wildcard certificate so all internal services establish mutual trust without TLS bypass flags:
oc extract secret/router-certs-default \
--namespace=openshift-ingress \
--keys=tls.crt \
--to=- > /tmp/internal-ca.crt
Step 4.2: Configuring On-Premise Ansible Lightspeed
- Access the on-premises Red Hat Ansible Automation Platform (AAP version 2.4 or later) administrative console.
- Under Automation Execution > Lightspeed Settings, replace the default SaaS broker endpoint (
https://c.ai.ansible.redhat.com) with the internal cluster route:- Lightspeed Service URL:
https://ansible-lightspeed.apps.ocp-airgap.internal.corp - Model Provider Endpoint:
https://${WCA_ROUTE}/v1/generation
- Lightspeed Service URL:
- Input the platform service account token or API key generated inside the IBM Software Hub instance administration console.
- Verify connectivity using AAP diagnostic tests to confirm playbook generation models respond within acceptable latency thresholds (<1.2 seconds for initial token emission).
Phase 5: Air-Gapped Developer Workstation & IDE Connectivity
To deliver code completions to software developers, internal IDEs must connect directly to the on-premise infrastructure.
Step 5.1: Offline Extension Packaging
In zero-trust environments without external access to the Visual Studio Marketplace, platform engineers must mirror extension artifacts into an internal Private Extension Gallery (such as code-server or Open VSX) or distribute vetted .vsix packages via corporate artifact repositories:
- Extension identifier:
redhat.ansible - Distribute the enterprise
.vsixbundle directly to developer workstations.
Step 5.2: Developer VS Code Client Configuration
In the enterprise-managed VS Code settings (settings.json), enforce internal service endpoints and corporate trust chains:
{
"ansible.lightspeed.enabled": true,
"ansible.lightspeed.suggestions.enabled": true,
"ansible.lightspeed.URL": "https://ansible-lightspeed.apps.ocp-airgap.internal.corp",
"http.proxyStrictSSL": true,
"http.proxySupport": "off"
}
Ensure the corporate root CA certificate is injected into developer OS certificate stores (/etc/pki/ca-trust/source/anchors/ on Linux, System Keychain on macOS, or Local Machine Certificate Store on Windows) so that VS Code and CLI utilities validate internal HTTPS routes seamlessly.
Operational Architecture Comparison: Air-Gapped vs. SaaS
| Architectural Dimension | IBM watsonx Code Assistant (Air-Gapped On-Premises) | Multi-Tenant Cloud SaaS / Hybrid Gateway |
|---|---|---|
| Data Residency & Boundary | 100% confined within on-premise OpenShift perimeter; zero external routing | Code prompts and contextual snippets transit public internet to provider cloud |
| Regulatory Audit Status | Compliant with defense ITAR, banking secrecy, and national security DLP | Requires cross-border data transfer waivers; vulnerable to third-party subprocessor changes |
| Storage Infrastructure | Red Hat OpenShift Data Foundation (Ceph RBD Block + CephFS File) | Managed transparently by cloud provider object storage |
| Maintenance & Patching | Deterministic, scheduled offline mirroring via cpd-cli | Unscheduled model version shifts and rolling cloud API updates |
| Infrastructure Overhead | High; requires dedicated GPU nodes (A100/H100), storage clusters, and platform ops | Low; minimal on-premises infrastructure footprint |
365Finds Institutional Evaluation
365Finds views on-premises IBM watsonx Code Assistant on Red Hat OpenShift as the enterprise benchmark for high-security generative software engineering. Where consumer and SaaS developer tools fail the baseline scrutiny of risk committees, this architecture delivers mathematically isolated generative AI execution.
Enterprise platform engineers must not underestimate the operational commitment required: foundation model mirroring demands hundreds of gigabytes of disk throughput, Ceph block storage must be tuned for IOPS consistency, and GPU resource slicing must be monitored closely. However, for organizations where intellectual property and regulatory compliance are non-negotiable, this on-premises implementation represents the definitive blueprint for modern, sovereign engineering productivity.