Store Charts in OCI Registries
Advanced15 minTrending
Push, pull, and manage Helm charts using OCI-compatible container registries like GitHub Container Registry, Docker Hub, and ECR.
Prerequisites
- -Helm 3.8+ installed
- -Access to an OCI-compatible registry
- -Registry authentication configured
Steps
1
Login to an OCI registry
Authenticate with your container registry to push and pull charts.
$ helm registry login ghcr.io --username <github-username> --password <github-pat>
Use a personal access token with read:packages and write:packages scopes for GitHub Container Registry.
2
Package the chart
Create a chart archive ready for pushing to the registry.
$ helm package myapp/ --version 1.2.0
3
Push a chart to the OCI registry
Upload the packaged chart to your registry.
$ helm push myapp-1.2.0.tgz oci://ghcr.io/my-org/charts
4
Pull a chart from the OCI registry
Download a chart from the registry to your local machine.
$ helm pull oci://ghcr.io/my-org/charts/myapp --version 1.2.0
5
Install directly from OCI registry
Install a chart directly from an OCI reference without pulling first.
$ helm install my-release oci://ghcr.io/my-org/charts/myapp --version 1.2.0 --namespace production
6
View chart metadata in the registry
Inspect chart details without downloading it.
$ helm show chart oci://ghcr.io/my-org/charts/myapp --version 1.2.0
Full Script
FAQ
Discussion
Loading comments...