OCI artifacts
Overview
OCI (Open Container Initiative) artifacts are the packaging and distribution format used by NKP Catalog for delivering application manifests, Helm charts, and catalog bundles. By leveraging OCI registries, catalogs can be pushed, pulled, and versioned using the same infrastructure used for container images.
How NKP Catalog uses OCI artifacts
NKP Catalog uses OCI artifacts at two levels:
-
Helm charts stored in OCI registries — Each application's Helm chart is pushed to an OCI registry (e.g.
ghcr.io). TheOCIRepositoryresource in each application'shelmrelease.yamlreferences the chart by OCI URL and tag. -
Catalog bundles — The
nkp create catalog-bundlecommand packages one or more applications (manifests, metadata, and optionally container images) into a tar archive. This bundle can then be pushed to an OCI registry as a collection artifact usingnkp push bundle.
OCI registry URLs
A typical OCI URL for a catalog collection follows this pattern:
oci://<registry>/<org>/<catalog-name>/collection
For Applications within a Catalog:
oci://<registry>/<org>/<catalog-name>/<app-name>
Airgapped deployments
For airgapped (disconnected) environments, catalog bundles can include container images alongside manifests. Build an airgapped bundle with:
nkp create catalog-bundle --airgapped --collection-tag <tag>
The resulting tar file can be transferred to the airgapped environment and pushed to a local registry.
Relationship to Flux
Flux's OCIRepository source controller pulls OCI artifacts from the registry at the interval specified in the application's manifests. When Flux detects a new artifact revision, it reconciles the application's HelmRelease or Kustomization to the updated state.