Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Openshift: Add All OperatorHub.io Operators to OpenShift

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.


๐Ÿ”„ 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 a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Best DevOps Tools in 2024

hereโ€™s a clear, structured breakdown of the Best DevOps Tools (grouped by categories), so you can use it for learning, training, or posts. ๐Ÿš€ Best DevOps Tools…

Read More

OpenShift Tutorial โ€“ Deploy and Access Your First Applications using OpenShift Local

How to install oc? OpenShift: How to Install OpenShift CLI oc How to login? Login to the Openshift using Web Console and CLI using oc Copy the admin…

Read More

OpenShift Lab 14: Setting Up and Using OpenShift Serverless Functions on OpenShift Local

Lab Objective In this lab, you will install and use OpenShift Serverless Functions on OpenShift Local. You will create a simple Node.js serverless function, deploy it to…

Read More

OpenShift Lab 13: Deploy a Java Spring Boot Application with MySQL Using the OpenShift Web Console

Lab Objective In this lab, you will deploy a Java Spring Boot application on OpenShift using the OpenShift web console. You will deploy two components: The Java…

Read More

OpenShift Lab 12: Deploy an Application from an Existing Container Image Using the OpenShift Web Console

Lab Objective In this lab, you will deploy an application on OpenShift from an existing container image. This lab is different from building an application from source…

Read More

OpenShift: How to Install OpenShift CLIย oc

Option – 1 – REDHAT Websites URL – https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.11/x86_64/product-software Option – 2 – OKD Websites The OKD (Origin Community Distribution of Kubernetes for OpenShift) is the open-source…

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