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: How to add Helm Repository in Openshift

Adding a Helm repository in OpenShift is a common step to manage and deploy Helm charts in your OpenShift cluster. OpenShift supports Helm CLI out of the box, and also provides an Operator (Helm Chart Repository CRD) to centrally manage chart repositories visible in the OpenShift Web Consoleโ€™s Developer Catalog.

Below, youโ€™ll find two ways:

  • A. Using the Helm CLI (User-level, CLI only)
  • B. Adding a Helm Chart Repository for the OpenShift Web Console (Admin-level, visible in Catalog)

A. Add a Helm Repository via CLI (User-level, CLI only)

This lets you use any public Helm repo (e.g., Bitnami, Jetstack) in your terminal, similar to Kubernetes.

Step 1. Install the Helm CLI

Step 2. Add a Repository

helm repo add bitnami https://charts.bitnami.com/bitnamiCode language: JavaScript (javascript)
  • Replace bitnami and URL with your desired repo.

Step 3. Update Repositories

helm repo update

Step 4. List Charts

helm search repo bitnami

Step 5. Install a Chart into OpenShift

Make sure youโ€™re logged into your OpenShift cluster:

oc login ... # login if needed
helm install my-mongodb bitnami/mongodb --namespace=my-namespaceCode language: PHP (php)

Thatโ€™s it!
You can now install, upgrade, or uninstall Helm charts using the CLI.


B. Add Helm Chart Repository for the OpenShift Web Console Catalog (Admin-level)

This is required if you want all users to browse and deploy charts from a repo using the OpenShift Web Console (Developer Catalog).

Step 1. Log in as a cluster-admin

oc login -u kubeadmin -p <password> https://api.<cluster-domain>:6443Code language: HTML, XML (xml)

Step 2. Create a Project (Optional)

oc new-project devopsschool-devCode language: JavaScript (javascript)

Step 3. Apply the ProjectHelmChartRepository YAML

Create a file called bitnami-helm-repo.yaml:

apiVersion: helm.openshift.io/v1beta1
kind: ProjectHelmChartRepository
metadata:
  name: bitnami
  namespace: devopsschool-dev
spec:
  name: bitnami
  description: Bitnami Helm chart repository
  connectionConfig:
    url: https://charts.bitnami.com/bitnami
Code language: JavaScript (javascript)

You can use any name/namespace. The url: should be your chart repo URL.

Step 4. Apply the YAML

oc apply -f bitnami-helm-repo.yamlCode language: CSS (css)

Step 5. Check in the Web Console

  • Go to Developer โ†’ +Add โ†’ Helm Chart
  • You should see the Bitnami charts available for install!

Troubleshooting & Tips

  • You need the Helm Operator installed by default in OpenShift 4.x+.
  • To add a repo cluster-wide (all namespaces), use a HelmChartRepository resource, not ProjectHelmChartRepository.
  • For private repositories, add authentication fields under connectionConfig.

Summary Table

MethodScopeUse Case
Helm CLIPer-user (CLI only)Quick install, dev/test, CI/CD
ProjectHelmChartRepositoryNamespace (Web UI & CLI)Org-wide, dev teams, UI Catalog
HelmChartRepositoryCluster-wideAll projects, company-wide

References


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