MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Openshift: Add All OperatorHub.io Operators to OpenShift

OpenShift OperatorHub console listing All OperatorHub.io operators like cert-manager and Airflow Helm

Here’s a complete, step-by-step tutorial โ€” with explanations โ€” to add OperatorHub.io operators to OpenShift by creating a custom CatalogSource pointing to their community catalog image from Quay.io.



๐ŸŽฏ Goal

You will configure OpenShift to pull operators directly from the OperatorHub.io community catalog, so that all available community operators appear inside your OperatorHub UI.


๐Ÿงฐ Prerequisites

  • โœ… OpenShift 4.x cluster (4.8+ recommended)
  • โœ… oc CLI installed and logged in as cluster-admin
  • โœ… Internet access to quay.io

โœ… Step 1: Understand What Weโ€™re Doing

OpenShift uses the Operator Lifecycle Manager (OLM) to manage OperatorHub. Operator catalogs are delivered via objects called CatalogSource, which point to an OCI-based operator index (usually a container image).

We’ll be adding a new CatalogSource that points to:

quay.io/operatorhubio/catalog:latest

This image is maintained by the OperatorHub.io team and contains all operators shown on their site.


๐Ÿ“„ Step 2: Create the YAML File

Save the following content into a file named: operatorhubio-catalogsource.yaml

apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: operatorhubio-catalog
  namespace: openshift-marketplace
spec:
  sourceType: grpc
  image: quay.io/operatorhubio/catalog:latest
  displayName: "OperatorHub.io Community Catalog"
  publisher: "OperatorHub.io"
  updateStrategy:
    registryPoll:
      interval: 45m
Code language: JavaScript (javascript)

๐Ÿ“˜ What Each Field Means:

FieldDescription
nameInternal name used by OLM
namespaceMust be openshift-marketplace so it’s cluster-wide
imagePoints to the community operator index
displayNameFriendly name shown in OpenShift UI
publisherShown in the OperatorHub UI
updateStrategyPolls the registry every 45 min for updates

๐Ÿ“ฅ Step 3: Apply the YAML

Run the following command to apply the custom catalog:

oc apply -f operatorhubio-catalogsource.yaml
Code language: CSS (css)

You should see:

catalogsource.operators.coreos.com/operatorhubio-catalog created

๐Ÿ‘€ Step 4: Verify the CatalogSource Is Working

Check the status of the catalog:

oc get catalogsource -n openshift-marketplace
Code language: JavaScript (javascript)

Expected output:

NAME                    DISPLAY                          PUBLISHER         AGE
operatorhubio-catalog   OperatorHub.io Community Catalog OperatorHub.io    1m
Code language: CSS (css)

Next, check if the catalog is READY:

oc describe catalogsource operatorhubio-catalog -n openshift-marketplace

Look for a Connection state: READY.

Terminal running oc apply and oc get catalogsource showing operatorhub-io catalog created and listed

๐Ÿ”„ Step 5: Wait for OperatorHub UI to Sync

It may take 2โ€“5 minutes for the UI to display new operators.

  • Go to Operators โ†’ OperatorHub
  • Use the Publisher filter and search for OperatorHub.io
  • Youโ€™ll now see many new operators available to install

You can also list them via CLI:

oc get packagemanifests -n openshift-marketplace | grep operatorhubio
Code language: JavaScript (javascript)

โœ… Step 6: Install an Operator (Optional)

Once the new operators appear, you can install them from the console or via CLI. Example for installing the PostgreSQL Operator:

oc create -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: postgresql-subscription
  namespace: my-app-namespace
spec:
  channel: stable
  name: postgresql
  source: operatorhubio-catalog
  sourceNamespace: openshift-marketplace
  installPlanApproval: Automatic
EOF
Code language: PHP (php)

๐Ÿงน (Optional) Step 7: Clean Up

To remove the catalog if needed:

oc delete catalogsource operatorhubio-catalog -n openshift-marketplace
Code language: JavaScript (javascript)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Knative: Example of Knative Service Example with all the options available

This page walks through a Knative Serving Service manifest that uses most of the commonly used fields: metadata, the revision template, probes, resources, volumes, autoscaling and traffic…

Read More

Azure Devops Pipeline YAML Example

This page shows a minimal Azure Pipelines YAML file that builds a Docker image with the Docker@2 task on a Microsoft-hosted Ubuntu agent each time code is…

Read More

Gitlab – Complete Details of .gitlab-ci.yml

GitLab builds every pipeline from one entry-point configuration file, .gitlab-ci.yml by default, but that file can pull in any number of other YAML files with the include…

Read More

Kubernetes ReplicaSet Explained: API Resource, YAML Example, and Use Cases

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More

How to Install and Configure pre-commit on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install and Configure pre-commit on Mac, Windows & Linux (2026) Meta Description: Learn how to install and configure pre-commit Git hooks on macOS,…

Read More

GitHub Actions Essentials โ€” Learn CI/CD in 2 Hours

Audience: Beginners, developers, junior DevOps engineers, QA engineers, and students Level: Beginner to early-intermediate Duration: About 120 minutes Format: Learn, modify, run, break, and fix Goal: By…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x