Can you add extra files to a helm chart?

Can you add extra files to a helm chart?

Before we get going with the template examples, though, there are a few things to note about how this works: It is okay to add extra files to your Helm chart. These files will be bundled. Be careful, though. Charts must be smaller than 1M because of the storage limitations of Kubernetes objects.

What do you need to know about the helm command?

The helm command has subcommands available to help package charts and create the required index.yaml file. These files can be served by any web server, object storage service, or a static site host such as GitHub Pages. Helm comes preconfigured with a default chart repository, referred to as stable.

How to access files from within templates in helm?

This makes it easy to import one template from within another template. But sometimes it is desirable to import a file that is not a template and inject its contents without sending the contents through the template renderer. Helm provides access to files through the .Files object.

How to create a chart in helm using Kubernetes?

Helm can output the scaffold of a chart directory with helm create chart-name. This will create a folder with the files and directories we discussed in the Charts section above. From there, you’ll want to fill out your chart’s metadata in Chart.yaml and put your Kubernetes manifest files into the templates directory.

How to iterate through a collection in helm?

Many programming languages have support for looping using for loops, foreach loops, or similar functional mechanisms. In Helm’s template language, the way to iterate through a collection is to use the range operator. To start, let’s add a list of pizza toppings to our values.yaml file:

Can you add SSL certificates to a helm chart?

currently Helm does not support including files that are not part of the chart to be included in the deployment of the chart (as far as I understand, due to security reasons, and since Tiller only has access to files inside the chart). Our use case is adding some SSL certificates, as well as some license files, to the helm chart deployment.