Sub topic 2
How OCI differs from HTTP chart repositories
This chapter assumes you have installed charts with Helm, can read Chart.yaml, and have used docker login against a container registry. It also assumes Helm 3.8 or later, where OCI support is on by default. It compares the two ways Helm distributes charts so you can pick the right one and avoid mixing up their commands.
The two distribution models
A classic HTTP chart repository is a web server that hosts two kinds of files: packaged charts (.tgz archives) and an index.yaml file. The index lists every chart, every version, and the URL of each archive. Helm downloads the index first, then uses it to find charts.
An OCI registry is a container registry that stores OCI artifacts. Helm pushes a chart as an artifact. The registry has no index file and no list of charts for Helm to download. Helm builds the location from the reference you give it and asks the registry for that exact chart and version.
Side-by-side comparison
| Aspect | HTTP repository | OCI registry |
|---|---|---|
| Discovery | `index.yaml` lists all charts | No index; you must know the reference |
| Setup command | `helm repo add` | None; `helm registry login` if auth is needed |
| Refreshing | `helm repo update` | Not needed |
| Search | `helm search repo` | Not supported by Helm; use the registry's own UI or API |
| Reference style | `repo-name/chart` | `oci://host/path/chart` |
| Version selection | `--version` | `--version`, which maps to the tag |
| Authentication | Basic auth or certificates per repository | Registry credentials, shared with `docker login` style tooling |
| Publishing | Upload the archive, then regenerate `index.yaml` | `helm push` |
What changes in daily use
With an HTTP repository, you register the repository under a local name and use that name as a prefix.
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm search repo bitnami/nginx
helm install web bitnami/nginx --version 15.0.0With OCI, there is no local alias. Each command takes the full reference, and the version is always a separate --version flag.
helm install web oci://registry.example.com/charts/myapp --version 0.1.0Three differences cause most early mistakes:
- No
helm repo add. Anoci://URL is not added as a repository. Runninghelm repo addwith anoci://address fails. - No
helm search repo. Without an index, Helm cannot list what a registry contains. Keep a record of chart paths in documentation, or use your registry's web interface. - The chart name is part of the reference when pulling. For
helm push, you give only the path, and Helm appends the chart name. Forhelm pullandhelm install, you give the full path including the name.
Why teams move to OCI
- One system for images and charts. The registry, access control, and audit logs you already run for container images also cover charts.
- No index to maintain. With HTTP repositories, a stale or conflicting
index.yamlis a common source of problems. OCI removes that file. - Immutable references are available. A chart can be addressed by digest, which later chapters cover.
- Signing and provenance fit the model. Registries already store related artifacts alongside an image.
HTTP repositories remain a good choice when you need helm search repo, when you publish through a static host such as GitHub Pages, or when your registry does not support OCI artifacts.
Check your understanding
Exercise
A teammate runs helm repo add team oci://registry.example.com/charts and then helm search repo team/. Neither works as expected. Explain why, and give the command to install version 0.1.0 of the chart myapp from that registry.
Show answer
OCI registries are not HTTP repositories. They have no index.yaml, so helm repo add does not apply to an oci:// address and helm search repo has nothing to search. Install directly with the full reference: helm install my-release oci://registry.example.com/charts/myapp --version 0.1.0.
Exercise
Name two things you stop maintaining when you move from an HTTP chart repository to an OCI registry.
Show answer
The index.yaml file, and the helm repo add and helm repo update steps on each client. The registry handles storage and lookup by name and tag.