Member-only story

OCI (Open Container Initiative) registry for Kubernetes

Luca Berton
3 min readOct 30, 2024

An OCI (Open Container Initiative) registry is a standard for distributing container images and other artifacts, including Helm charts, Open Policy Agent bundles, and more. It allows Helm charts to be stored and retrieved in an OCI-compliant registry, just like container images. This is particularly useful if you’re already using OCI registries (e.g., Docker Hub, Harbor, AWS ECR, or Azure ACR) for container images, and you want to store Helm charts alongside those images.

Here’s how you can use Helm with an OCI registry.

Steps to Push and Pull Helm Charts from an OCI Registry:

  1. Enable OCI Support in Helm: Helm supports OCI registries starting from Helm 3.7. To enable Helm OCI support, you just need to use the proper commands as shown below.
  2. Login to the OCI Registry: First, you need to log in to the OCI registry. For Docker-compatible registries, use the following command:
helm registry login <registry-url>
  1. Example (Docker Hub):
helm registry login registry-1.docker.io
  1. If you are using AWS ECR, Azure ACR, or Google Container Registry, you’ll need to log in using the cloud-specific CLI tools (e.g., aws ecr get-login-password for AWS, az

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet