Build catalog application
Overview
The build step packages one or more applications from a catalog repository into a bundle (tar archive) that can be pushed to an OCI registry for deployment on NKP clusters.
Build command
nkp create catalog-bundle [flags]
Common usage
Build a bundle for all applications matching an NKP version constraint:
nkp create catalog-bundle --constraint nkpVersion=<nkp-version> --collection-tag v<nkp-version>.0
Build a bundle for specific applications:
nkp create catalog-bundle --apps=<app1>=<version1> --apps=<app2>=<version2> --collection-tag v1.0.0
Airgapped bundles
Include container images for disconnected environments:
nkp create catalog-bundle --airgapped --collection-tag v1.0.0
Output
By default the bundle is written to the current directory. Use --output-file to specify a custom path:
nkp create catalog-bundle --collection-tag v1.0.0 -o ./dist/my-catalog.tar
Prerequisites
- The catalog repository must pass validation (
nkp validate catalog-repository --repo-dir=.) - Helm charts referenced by applications must be accessible (either in OCI registries or local)