Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

How to deploy the Offline Knowledge Portal on OpenShift

October 3, 2025
Abdoul Djire Teg-Wende Regis Nare
Related topics:
ContainersDisconnected Environments
Related products:
Red Hat OpenShift

Share:

    The Red Hat Offline Knowledge Portal is a game-changer for anyone using Red Hat products in disconnected or low-bandwidth scenarios. It provides a concise and current compilation of Red Hat information, encompassing product documentation, knowledge-based articles, CVEs, errata, and security data APIs. This comprehensive collection is delivered as a container image, designed for deployment in environments with limited to no internet connectivity.

    The Red Hat Developer article, How to install Offline Knowledge Portal on a local system, discussed deploying the Red Hat Offline Knowledge Portal as a standalone container. This is suitable for test environments, but an enterprise setting typically requires running the instance from a central location on a Kubernetes platform like Red Hat OpenShift.

    This guide will walk you through deploying the portal on an existing OpenShift cluster.

    Prerequisites

    Before you begin, ensure you meet these key requirements:

    • A fully functional OpenShift cluster with cluster-admin privileges.
    • An active Red Hat Satellite subscription.
    • Red Hat Customer Portal credentials: To download the image and generate your access key, you'll need your Red Hat Customer Portal, Red Hat Developer, or Registry Service Account credentials.
    • An access key generated from the Red Hat Offline Knowledge Portal Access Key Generator.
    • A jump host: A machine that can access the internet (for downloading the image) and your disconnected OpenShift environment (for transferring the image). Once downloaded, it's designed to run completely offline.
    • Podman: We'll use the Podman command-line tool to download, tag, and push the container image. 

    Step 1: Download the container image

    Perform this step on a machine with internet connectivity. You will use Podman to log into the Red Hat registry and pull the portal image.

    1. Log into the Red Hat container registry as follows:

      $ podman login registry.redhat.io 
      # Enter your username and password when prompted. 
      # You should see "Login Succeeded!"
    2. Pull the latest image for the portal. The exact image tag might vary. The rhokp-rhel9:latest is a common one, but you should always verify the latest on the Red Hat Ecosystem Catalog Portal.

      $ podman pull registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest 

      Note: Ensure you have sufficient disk space. The offline portal can be several GB in size (about 12GB at the time of writing this article).  

    3. Save the image as a .tar file. This file will be transferred to your disconnected environment. 

      $ podman save --format oci-archive -o rhokp.tar registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:latest

    Step 2: Move the image to your registry

    Transfer the rhokp.tar file to your jump host and then to a registry accessible to your OpenShift cluster.

    1. Transfer the rhokp.tar file to your jump host using a secure method.  
    2. Load the image from the .tar file onto your jump host's local Podman storage.  

      $ podman load -i rhokp.tar
    3. Push the image to your private image registry and have OpenShift pull from there. 

      Note: For more information on tagging and pushing using Podman, see the Podman documentation page.  

    Step 3: Deploy on OpenShift

    With the image available in your environment, you can now deploy the portal as a standard OpenShift workload. You can use the OpenShift web console or the oc CLI. To deploy from the CLI:

    1. Create a new project: Create a dedicated project for the portal. 

      $ oc new-project rhokp-portal  
    2. Create a secret with the access key: This requires your access key to enable full functionality of the portal.  

      $ oc create secret generic access-key --from-literal=access-key=<YOUR_ACCESS_KEY> -n rhokp-portal
    3. Authentication: Ensure you have configured the necessary authentication to access your secured or private registry. See the OpenShift documentation on allowing pods to reference images from secured registries.
    4. Create a deployment: Create a rhokp.yaml manifest to deploy the portal. The following example creates a simple deployment and service. You may need to customize this for your specific environment, including adding persistent storage or custom routes. Additionally, you need to update the sample YAML file to reflect the actual container image in your registry.
    apiVersion: v1
    kind: Service
    metadata:
      name: rhokp-portal
      namespace: rhokp-portal
    spec:
      selector:
        app: rhokp-portal
      ports:
        - protocol: TCP
          port: 8080
          targetPort: 8080
    ---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: rhokp-portal
      namespace: rhokp-portal
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: rhokp-portal
      template:
        metadata:
          labels:
            app: rhokp-portal
        spec:
          containers:
            - name: rhokp-portal
              image: <Your-Registry>/<example_repository>/image:latest
              env:
                # This references the secret created in the previous step
                - name: ACCESS_KEY
                  valueFrom:
                    secretKeyRef:
                      name: access-key
                      key: access-key
              ports:
                - containerPort: 8080
                  protocol: TCP
      $ oc create -f rhokp.yaml -n rhokp-portal

    It may take some time for the pod to spin up and become ready.

    1. Expose the service: Create a route to expose the portal to internal or external users. A route is the easiest method for a basic setup. 

      $ oc expose svc rhokp-portal --port=8080 -n rhokp-portal 
      $ oc get route -n rhokp-portal 

      Note: Refer to the OpenShift documentation for configuring secured and unsecured routes.

    Step 4: Access the portal

    After you have created the deployment and route, you can access the Offline Knowledge Portal at the URL provided by the route. You'll be presented with a searchable interface, as shown in Figure 1.

    The Offline Knowledge Portal search interface.
     Figure 1: This shows the user interface of the Red Hat Offline Knowledge Portal.

    Next steps

    The Red Hat Offline Knowledge Portal offers a robust solution for users operating in disconnected or low-bandwidth environments, providing a comprehensive collection of Red Hat information locally. We demonstrated the process of deploying Offline Knowledge Portal on an OpenShift cluster, from downloading the container image and moving it to your registry, to deploying and accessing the portal within your OpenShift environment. By following these steps, you can leverage Offline Knowledge Portal to efficiently browse product documentation, search for error codes, look up CVEs, and check product lifecycles, all from a local container. For further details, refer to the product page.

    Related Posts

    • How to install Offline Knowledge Portal on a local system

    • Disconnected OpenShift Virtualization made easy

    • Using .NET Core in a "Disconnected" Environment

    • How to verify container signatures in disconnected OpenShift

    Recent Posts

    • DeepSeek-V3.2-Exp on vLLM, Day 0: Sparse Attention for long-context inference, ready for experimentation today with Red Hat AI

    • How to deploy the Offline Knowledge Portal on OpenShift

    • Autoscaling vLLM with OpenShift AI

    • Filtering packets from anywhere in the networking stack

    • PostGIS: A powerful geospatial extension for PostgreSQL

    What’s up next?

    In disconnected environments, especially those with stringent security requirements, OpenShift installations require additional consideration, including mirroring of all necessary content locally and steps to simulate an internet connection for OpenShift's functionality. This cheat sheet shows you how to perform an OpenShift disconnected installation in a secured environment.

    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue