Skip to content
Install the CLI

How-to guide Operate a cluster

Export audit-preserving YAML

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

Use kix export --with-kix-metadata when the exported manifests need to retain the Kix metadata that connects resources to packages, dependencies, and an activation. This export is intended as evidence or as input to an audit process.

Pass --with-kix-metadata and choose an output directory:

kix-examples/
❱ kix export how-to-application --with-kix-metadata --out ./audit-export
Building cluster 'how-to-application'...
  Evaluating cluster 'how-to-application'...
  Reading package index...
  Loading store graph...
  Reading 4 packages...
  Computing cross-package dependencies...

  Exported 15 resources to ./audit-export (with Kix metadata)

Kix evaluates and builds the cluster locally. The export includes every rendered resource, including Activation and PackageInstance custom resources, and preserves its kix.run/* annotations.

Exported manifests preserve their kix.run/identity-hash, kix.run/package, and kix.run/package-namespace annotations (plus kix.run/depends-on on resources that have dependencies), which record resource identity, package membership, and dependency edges. The export also writes Activation and PackageInstance manifests into the directory tree, with the Activation resource under _cluster/ serving as the root of the rendered deployment graph:

kix-examples/
❱ find ./audit-export -name 'Activation-*.yaml' -o -name 'PackageInstance-*.yaml'
./audit-export/how-to-app/PackageInstance-production.yaml
./audit-export/how-to-app/PackageInstance-preview.yaml
./audit-export/kube-system/PackageInstance-platform-dns.yaml
./audit-export/kube-system/PackageInstance-platform-storage.yaml
./audit-export/_cluster/Activation-how-to-application-6n94gibgl7zv.yaml

Do not use the audit export when another deployment system needs ordinary application manifests. Its internal custom resources and Kix annotations are part of the evidence being preserved.

Leave out --with-kix-metadata for that workflow:

kix-examples/
❱ kix export how-to-application --out ./handoff