Akua
The packaging substrate behind every Akua installation
Akua is the open-source packaging substrate behind Akua’s per-installation renders. Every install on Akua is an akua Package: a typed KCL program, rendered in a sandbox and pinned by digest, that turns customer inputs into Kubernetes manifests.
Why akua
- Typed instead of templated. Helm values are an untyped tree parsed as YAML 1.1, and most popular charts ship no values schema. In akua, inputs, Kubernetes resources, Custom Resources and chart values are schemas, so a typo fails the render with the file and line instead of reaching a cluster.
- Sandboxed, because charts are programs. Helm and Kustomize can read host files, make network requests and run plugins with the authority of whatever renders them. akua runs both, and the KCL runtime, as WebAssembly with no filesystem, network, environment or process access, under memory and CPU budgets.
- Locked dependencies. Charts, CRDs and KCL modules are pinned by digest in
akua.lock, with optional cosign verification.
Why typed and sandboxed → has the evidence; Typed resources → shows the workflow.
You don’t have to author an akua Package by hand to use Akua. The platform can synthesize one from a Helm chart in a public OCI repository. See Packages for the platform contract around Package versions.
Try it
The Package toolchain ships inside the akua CLI as akua pkg, and as the standalone akuapkg executable:
brew install akua-dev/tap/akua
akua pkg init hello && cd hello
akua pkg render --inputs inputs.example.yamlinit scaffolds akua.toml, akua.lock, package.k and inputs.example.yaml, typed against Kubernetes 1.35; render writes the resulting manifests to ./deploy. The standalone akuapkg binary (brew install akua-dev/tap/akuapkg) runs the same commands without the pkg prefix.
What akua provides
| Surface | Purpose |
|---|---|
package.k | Install composition: KCL logic that turns inputs into Kubernetes resources |
akua.toml + akua.lock | Pinned dependencies (Helm charts, other Packages, KCL modules, CRDs), digest-locked and optionally cosign-verified |
| Typed resources | The Kubernetes schemas of one pinned version, plus schemas generated from CRDs under .akua/crds/ |
akua pkg render | Executes the Package against inputs and writes deploy-ready manifests |
akua pkg export | Emits the Package’s input schema as JSON Schema 2020-12 or OpenAPI 3.1 |
akua pkg publish | Packs the Package and pushes it to an OCI registry, cosign-signed and attested when a signing key is configured |
Renders run in a WebAssembly sandbox: no network, no shell, no environment, and only a read-only copy of the Package is visible. The same inputs, lockfile and toolchain version produce byte-identical output, unless a chart asks Helm for randomness. The sandbox protects the machine that renders; what the manifests do in a cluster is still up to your policy.
How Akua uses akua
Akua runs akua at two points in the install lifecycle:
- Schema for the install wizard: Akua reads the Package version’s input schema; the wizard renders from it. UI hints from
x-uiextensions flow through. - Per-install rendering: for every customer Install, Akua renders the Package against that customer’s inputs in a sandbox and applies the result to the Cluster.
Where to start
Typed resources
Type every resource against a Kubernetes version and your CRDs.
Package format
Authoring package.k: the Input schema, @ui annotations, composition.
akua pkg commands
Every command, its flags, and the exit codes.
Source on GitHub
The toolchain’s source, examples, and release notes.
Status
Akua is alpha. The Package format and the command contract (JSON output, error codes, exit codes) are stable enough to build on; the command set still grows. Akua pins a specific toolchain version per release and bumps it deliberately.