Rancher provides the ability to use a catalog of Helm charts that make it easy to repeatedly deploy applications.
Catalogs are GitHub repositories or Helm Chart repositories filled with applications that are ready-made for deployment. Applications are bundled in objects called Helm charts.
A collection of files that describe a related set of Kubernetes resources. A single chart might be used to deploy something simple, like a memcached pod, or something complex, like a full web app stack with HTTP servers, databases, caches, and so on.
Rancher improves on Helm catalogs and charts. All native Helm charts can work within Rancher, but Rancher adds several enhancements to improve their user experience.
Catalogs can be added at different scopes of Rancher.
|Global||Catalogs added at this scope are available for all clusters and all projects in Rancher.|
|Cluster||Catalogs added within a cluster are available for all projects in that cluster.|
|Project||Catalogs added within a project are only available for that project.|
Enabling Built-in Catalogs
Within Rancher, there are default catalogs packaged as part of Rancher. These can be enabled or disabled by an administrator.
From the Global view, choose Tools > Catalogs in the navigation bar. In versions prior to v2.2.0, you can select Catalogs directly in the navigation bar.
Toggle the default catalogs that you want use to a setting of Enabled.
The Library Catalog includes charts curated by Rancher. Rancher stores charts in a Git repository to expedite the fetch and update of charts. In Rancher 2.x, only global catalogs are supported. Support for cluster-level and project-level charts will be added in the future.
This catalog features Rancher Charts, which include some notable advantages over native Helm charts.
This catalog, , which is maintained by the Kubernetes community, includes native Helm charts. This catalog features the largest pool of apps.
Similar in user experience to Helm Stable, but this catalog is filled with applications in beta.
Result: The chosen catalogs are enabled. Wait a few minutes for Rancher to replicate the catalog charts. When replication completes, you’ll be able to see them in any of your projects by selecting Apps from the main navigation bar. In versions prior to v2.2.0, you can select Catalog Apps from the main navigation bar.
Adding Custom Catalogs
Adding a catalog is as simple as adding a catalog name, a URL and a branch name.
Add Custom Git Repositories
The Git URL needs to be one that
git clone can handle and must end in
.git. The branch name must be a branch that is in your catalog URL. If no branch name is provided, it will use the
master branch by default. Whenever you add a catalog to Rancher, it will be available immediately.
Add Custom Helm Chart Repositories
A Helm chart repository is an HTTP server that houses one or more packaged charts. Any HTTP server that can serve YAML files and tar files and can answer GET requests can be used as a repository server.
Helm comes with built-in package server for developer testing (helm serve). The Helm team has tested other servers, including Google Cloud Storage with website mode enabled, S3 with website mode enabled or hosting custom chart repository server using open-source projects like ChartMuseum.
In Rancher, you can add the custom Helm chart repository with only a catalog name and the URL address of the chart repository.
Add Private Git/Helm Chart Repositories
Available as of v2.2.0
In Rancher v2.2.0, you can add private catalog repositories using credentials like Username and Password. You may also want to use the OAuth token if your Git or Helm repository server support that.
- From the Global view, choose Tools > Catalogs in the navigation bar. In versions prior to v2.2.0, you can select Catalogs directly in the navigation bar.
- Click Add Catalog.
- Complete the form and click Create.
Result: Your catalog is added to Rancher.
Launching Catalog Applications
After you’ve either enabled the built-in catalogs or added your own custom catalog, you can start launching any catalog application.>
From the Global view, open the project that you want to deploy to.
From the main navigation bar, choose Apps. In versions prior to v2.2.0, choose Catalog Apps on the main navigation bar. Click Launch.
Find the app that you want to launch, and then click View Now.
Under Configuration Options enter a Name. By default, this name is also used to create a Kubernetes namespace for the application.
- If you would like to change the Namespace, click Customize and enter a new name.
- If you want to use a different namespace that already exists, click Customize, and then click Use an existing namespace. Choose a namespace from the list.
Select a Template Version.
Complete the rest of the Configuration Options.
- For native Helm charts (i.e., charts from the Helm Stable or Helm Incubator catalogs), answers are provided as key value pairs in the Answers section.
- Keys and values are available within Detailed Descriptions.
When entering answers, you must format them using the syntax rules found in Using Helm: The format and limitations of –set, as Rancher passes them as
--setflags to Helm.
For example, when entering an answer that includes two values separated by a comma (i.e.,
abc, bcd), wrap the values with double quotes (i.e.,
Review the files in Preview. When you’re satisfied, click Launch.
Result: Your application is deployed to your chosen namespace. You can view the application status from the project’s:
By creating a customized repository with added files, Rancher improves on Helm repositories and charts. All native Helm charts can work within Rancher, but Rancher adds several enhancements to improve their user experience.
Within Rancher, you can manage catalogs at three different scopes. Global catalogs is shared across all clusters and project. There are some use cases where you might not want to share catalogs across between different clusters or even projects in the same cluster. By leveraging cluster and project scoped catalogs, you will be able to provide applications for specific teams without needing to share them with all clusters and/or projects.
|Scope||Description||Available As of|
|Global||All clusters and all projects can access the Helm charts in this catalog||v2.0.0|
|Cluster||All projects in the specific cluster can access the Helm charts in this catalog||v2.2.0|
|Project||This specific cluster can access the Helm charts in this catalog||v2.2.0|
Working with catalogs
There are two types of catalogs in Rancher. Learn more about each type:
In Rancher, applications are deployed from the templates in a catalog. Rancher supports two types of applications:
Available as v2.2.0
When creating applications that span multiple Kubernetes clusters, a Global DNS entry can be created to route traffic to the endpoints in all of the different clusters. An external DNS server will need be programmed to assign a fully qualified domain name (a.k.a FQDN) to your application. Rancher will use the FQDN you provide and the IP addresses where your application is running to program the DNS. Rancher will gather endpoints from all the Kubernetes clusters running your application and program the DNS.
For more information on how to use this feature, see Global DNS.