AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Deploying IBM watsonx Code Assistant On-Premises in Air-Gapped Red Hat OpenShift Environments: Architecture & Implementation Guide

Solène Génard · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

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:

2. Storage Architecture Requirements

IBM watsonx Code Assistant requires two distinct storage performance tiers:


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

  1. Access the on-premises Red Hat Ansible Automation Platform (AAP version 2.4 or later) administrative console.
  2. 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
  3. Input the platform service account token or API key generated inside the IBM Software Hub instance administration console.
  4. 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:

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 DimensionIBM watsonx Code Assistant (Air-Gapped On-Premises)Multi-Tenant Cloud SaaS / Hybrid Gateway
Data Residency & Boundary100% confined within on-premise OpenShift perimeter; zero external routingCode prompts and contextual snippets transit public internet to provider cloud
Regulatory Audit StatusCompliant with defense ITAR, banking secrecy, and national security DLPRequires cross-border data transfer waivers; vulnerable to third-party subprocessor changes
Storage InfrastructureRed Hat OpenShift Data Foundation (Ceph RBD Block + CephFS File)Managed transparently by cloud provider object storage
Maintenance & PatchingDeterministic, scheduled offline mirroring via cpd-cliUnscheduled model version shifts and rolling cloud API updates
Infrastructure OverheadHigh; requires dedicated GPU nodes (A100/H100), storage clusters, and platform opsLow; 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.

References