Publish Helm Charts
Suppose you have a Helm chart and want to publish it to the newly created container registry using the Helm command-line tool. Note that Helm 3.8 or later is required.
Make sure OCI support is enabled on your machine. To enable the support, set the
HELM_EXPERIMENTAL_OCI
environment variable by running the command:Linux | macOSWindowsexport HELM_EXPERIMENTAL_OCI=1
setx HELM_EXPERIMENTAL_OCI "1" /M
(run as administrator)
Log in to the container registry:
herehelm registry login mycompany.registry.jetbrains.space
mycompany.registry.jetbrains.space
is the registry URL(
mycompany
is the name of your company in Space). If you are not sure about the URL, you can copy the URL of a particular container registry on the Packages page.
When asked for credentials, specify either your Space username and password (we recommend that you use a permanent token instead) or a client ID and a client secret of a service account.
If your chart is not yet created, create it with
helm create mychart
. Modify your chart as needed.Save the chart directory:
helm package ./mychart
here
./mychart
is a path to the chart directory.Publish the chart to the registry:
herehelm push myChart:0.1.0 mycompany.registry.jetbrains.space/p/projectkey/my-helm-charts/
0.1.0
is the chart version specified inChart.yaml
.
Thanks for your feedback!