Add a new Helm repository to OpenShift 4

Published by Tobias Hofmann on

2 min read

OpenShift 4 comes with a catalog containing several ready-to-run solutions. Besides the basic one-app software that will install and run a software in a pod, there are also Helm charts available. Helm charts are loaded from a repository, and by default, OpenShift 4 includes the RedHat Helm Charts repository. Chances are good that the Helm charts available there don’t fit your needs, so you might want to add other repositories. One provider of a nice set of Helm charts is Bitnami.

Note

The steps shown here are to add the Bitnami Helm chart repository. To add another repository, basically you just have to adjust the repo URL and name.

The Helm chart I want to install is the one for PostgreSQL HA, available at GitHub. The readme at the GitHub repo shows how to add the Bitnami helm repository to Kubernetes. To add the repository to OpenShift 4, you add it via a YAML configuration. The YAML configuration is very simple: add a name and the URL of the repository.

apiVersion: helm.openshift.io/v1beta1
kind: HelmChartRepository
metadata:
  name: bitnami
spec:
  name: bitnami
  connectionConfig:
    url: https://charts.bitnami.com/bitnami

Save the above content in file bitnami-helm-repo.yaml. Now add the new helm repository to OpenShift. This can be done via the oc tool. Make sure to log on as administrator first.

oc login -u kubeadmin https://api.crc.testing:6443
oc apply -f bitnami-helm-repo.yaml

The new Bitnami helm repository is now available in OpenShift 4. Log on as developer and create a new application in your project.

Select “Helm Chart” and a list of available charts is listed. Note that you can see bitnami as a repository on the left side.

You can filter and search for a chart as well as install them.

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung
Let the world know

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.