Manifest reference¶
Every resource in Kukeon has a YAML schema. All manifests share the same shape:
apiVersion: v1beta1
kind: <Realm|Space|Stack|Cell|Container|Secret|CellBlueprint|CellConfig|Volume|HealthReport|Source|Team|TeamDefaults>
metadata:
name: <string>
labels:
key: value
spec:
# kind-specific fields
status:
# filled in by kukeon; read-only on write
Supported versions¶
Only v1beta1 is currently defined, and apiVersion is required: kuke apply -f rejects a document without it (apiVersion is required (expected v1beta1)) rather than assuming the current version. See Architecture → API versioning for how Kukeon decouples the on-wire schema from internal types, which lets new versions coexist when they ship.
What's new in v0.5.0¶
The v1beta1 schema picked up several additions since v0.3.0. The biggest ones, by kind:
- All four levels (realm / space / stack / cell) now report
status.subtreeControllers— the cgroup-v2 controller set actually delegated on the resource's owncgroup.subtree_control— and a uniform set of lifecycle fields (createdAt,updatedAt,readyAt,reason,message,cgroupReady). See each kind'sstatustable. - Cell —
spec.nestedCgroupRuntimeopts a cell into full controller delegation for nested runtimes (e.g. an inner kukeond).spec.rootContainerIdselection rules are spelled out. - Container —
spec.hostCgroupopts the container into its parent's cgroup namespace (kukeond-style host-cgroup mode).spec.volumes[].kindnow discriminatesbindvstmpfs, withsizeBytesandmodeknobs. Each container in a cell sees a managed/etc/hosts//etc/hostnameplusKUKEON_*identity environment variables.
If you're moving from v0.3.0 or v0.4.0, the per-kind pages below are the source of truth.
Kinds¶
- Realm — tenant boundary
- Space — CNI network + cgroup
- Stack — logical group of cells
- Cell — group of containers sharing a network namespace
- Container — OCI container
- Secret — named, scoped, daemon-managed credential
- CellBlueprint — daemon-stored parametrized cell template
- CellConfig — daemon-stored binding of a Blueprint to a named, idempotent cell identity
- Source — a stored Git repository (address, ref, git identity) that teams name for roles, harnesses and checkouts
TeamandTeamDefaults— see Teams
Common fields¶
metadata.name¶
Required, string. Unique within its parent. The name is also what you use as realmId, spaceId, stackId, or cellId in child resources.
Realm, space, stack, cell and container names use lowercase letters and digits, with hyphens allowed only between them (^[a-z0-9]+([a-z0-9-]*[a-z0-9])?$). They cannot contain a dot: a realm name is part of its containerd namespace (<realm>.kukeon.io), so realm default.dev would share the namespace of realm default on an instance whose suffix is dev.kukeon.io, and every scope name is a cgroup directory, where names such as memory.max belong to the kernel.
Secret, CellBlueprint, CellConfig, Volume, Team and Source names follow the same rule but also allow dots between letters and digits (^[a-z0-9]+([a-z0-9.-]*[a-z0-9])?$). A cell name generated from a dotted CellConfig or CellBlueprint name turns each dot into a hyphen: Config my.app creates cells named my-app-<6hex>.
A scope coordinate (metadata.realm, metadata.space, secretRef.stack and the like) names a realm, space, stack or cell, so it follows the scope rule whatever the kind: a Secret may be named gh.token, but not stored in realm a.b.
Upper case, _, /, \, whitespace, ., .. and a leading dot are refused on create, get and delete, and so are scope coordinates that break the rule. The container name root is reserved for the cell's root container: a container named root must be the root (root: true, or the container spec.rootContainerId names), and any other container named root is refused.
metadata.labels¶
Optional, map of string to string. Arbitrary key-value metadata. Not used by any Kukeon logic today; labels are preserved on round-trip.
metadata.generation¶
Read-only, integer. Monotonic counter bumped by a writer on each spec-changing update, so a reconciler can tell whether it has observed the latest spec (compare against status.observedGeneration). Defaults to zero and is omitted when zero. Writers do not bump it yet, so it stays absent until a later release wires them up. Present on realm, space, stack, and cell — not container.
status.state¶
Read-only. Managed by Kukeon. Takes one of:
Pending— created, not yet reconciledCreating— provisioning underwayReady/Running— fully reconciledStopped— terminal, was running, now exitedPaused/Pausing— frozen via cgroupFailed— reconciliation or runtime failureDeleting— being torn downUnknown— the daemon cannot determine the state
Not every state is valid for every kind; see each kind's page for the exact set.
status.cgroupPath¶
Read-only. Populated by Kukeon with the absolute cgroup path of the resource (e.g., /kukeon/main/default). Useful for quickly locating the resource in /sys/fs/cgroup.
Applying manifests¶
See kuke apply for the full shape of the command.
Round-trip safety¶
What goes in as YAML comes out as YAML. Kukeon populates defaults and sets status.*, but otherwise preserves the manifest you applied, including its apiVersion. You can kuke get -o yaml and re-apply without losing fields.