Skip to content

Latest commit

 

History

History
64 lines (55 loc) · 1.46 KB

helm-creating-a-custom-helm-chart-on-openshift.adoc

File metadata and controls

64 lines (55 loc) · 1.46 KB

Creating a custom Helm chart on {product-title}

Procedure
  1. Create a new project:

    $ oc new-project nodejs-ex-k
  2. Download an example Node.js chart that contains {product-title} objects:

    $ git clone https://github.com/redhat-developer/redhat-helm-charts
  3. Go to the directory with the sample chart:

    $ cd redhat-helm-charts/alpha/nodejs-ex-k/
  4. 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)
    1. The chart API version. It should be v2 for Helm charts that require at least Helm 3.

    2. The name of your chart.

    3. The description of your chart.

    4. The URL to an image to be used as an icon.

  5. Verify that the chart is formatted properly:

    $ helm lint
    [INFO] Chart.yaml: icon is recommended
    
    1 chart(s) linted, 0 chart(s) failed
  6. Install the chart:

    $ cd ..
    $ helm install nodejs-chart nodejs-ex-k
  7. 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