In this tutorial, you'll learn how to create a Helm chart and deploy it to a repository. The repository can then be used as a source for a custom catalog in Rancher.
You can fill your custom catalogs with either Helm Charts or Rancher Charts, although we recommend Rancher Charts due to their enhanced user experience.
For a complete walkthrough of developing charts, see the upstream Helm chart developer reference.
Within the GitHub repo that you're using as your custom catalog, create a directory structure that mirrors the structure listed in the Chart Directory Structure.
Rancher requires this directory structure, although
Recommended: Create an
Use this file to create custom text for your chart's header in the Rancher UI. You can use this text to notify users that the chart is customized for your environment or provide special instruction on how to use it.
$ cat ./app-readme.md
# Wordpress ROCKS!
Recommended: Create a
This file creates a form for users to specify deployment parameters when they deploy the custom chart. Without this file, users must specify the parameters manually using key value pairs, which isn't user-friendly.
The example below creates a form that prompts users for persistent volume size and a storage class.
For a list of variables you can use when creating a `questions.yml` file, see [Question Variable Reference](/v2.0-v2.4/how-to-guides/new-user-guides/helm-charts-in-rancher/creating-apps#question-variable-reference).
- variable: persistence.enabled
description: "Enable persistent volume for WordPress"
label: WordPress Persistent Volume Enabled
group: "WordPress Settings"
- variable: persistence.size
description: "WordPress Persistent Volume Size"
label: WordPress Volume Size
- variable: persistence.storageClass
description: "If undefined or null, uses the default StorageClass. Default to null"
label: Default StorageClass for WordPress
Check the customized chart into your GitHub repo.
Result: Your custom chart is added to the repo. Your Rancher Server will replicate the chart within a few minutes.