How to fix the INSTALLATION FAILED must either provide a name or specify --generate-name error in Helm

Helm is a package manager for Kubernetes that helps you define, install, and upgrade applications using charts (templates and configurations).

The error Error: must either provide a name or specify --generate-name occurs in Helm v3 when you run helm install without specifying a release name. The release name is a unique identifier for that installation—Helm requires it to track and manage your deployments.

The Issue

Let’s take for example the following command, which throws an error in Helm:

helm install <path-to-the-helm-chart> --namespace <namespace-name>

The Fix

You need to provide a release name (the identifier for your deployment):

helm install <release-name> <path-to-the-helm-chart> --namespace <namespace-name>

Alternative

If you don’t care about the release name, you can auto-generate one:

helm install <path-to-the-helm-chart> --generate-name --namespace <namespace-name>

This will create a random release name. However, it’s better practice to give it a meaningful name for easier management.

comments powered by Disqus