Procedure
-
Create a new project:
$ oc new-project nodejs-ex-k
-
Download an example Node.js chart that contains {product-title} objects:
$ git clone https://github.com/redhat-developer/redhat-helm-charts
-
Go to the directory with the sample chart:
$ cd redhat-helm-charts/alpha/nodejs-ex-k/
-
Edit the
Chart.yaml
file and add a description of your chart:apiVersion: v2 (1) name: nodejs-ex-k (2) description: A Helm chart for OpenShift (3) icon: https://static.redhat.com/libs/redhat/brand-assets/latest/corp/logo.svg (4)
-
The chart API version. It should be
v2
for Helm charts that require at least Helm 3. -
The name of your chart.
-
The description of your chart.
-
The URL to an image to be used as an icon.
-
-
Verify that the chart is formatted properly:
$ helm lint [INFO] Chart.yaml: icon is recommended 1 chart(s) linted, 0 chart(s) failed
-
Install the chart:
$ cd .. $ helm install nodejs-chart nodejs-ex-k
-
Verify that the chart has installed successfully:
$ helm list NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION nodejs-chart nodejs-ex-k 1 2019-12-05 15:06:51.379134163 -0500 EST deployed nodejs-0.1.0 1.16.0