Skip to content

Kind · os.platform-kit.org/v1alpha1

BootAsset

A BootAsset is one boot image and the way to fetch it. The BootAsset controller builds or addresses the image. The InsertMedia action mounts it on the BMC.

Group and version
os.platform-kit.org/v1alpha1
Scope
Cluster.
Written by
You, or the operator: it makes <node>-embedded for a machine behind a one-slot BMC.
Reconciled by
BootAsset controller
Condition
Ready
Sample
bootasset.yaml
Strategy Content Secret Fields Where it rests How the BMC fetches it
factory The generic Talos installer, with the schematic no talosVersion, schematic the media store, downloaded from the URL in status.url a grant of the media service, with no credentials
configISO The machine config of one node, about 10 KB yes nodeRef a Secret in pk-metal a grant of the media service
embeddedInstaller An installer with the config of one node inside yes nodeRef, talosVersion, schematic the media store a grant of the media service

The kind refuses fields that do not belong to the strategy.

factory
The controller registers the schematic with the image factory, downloads the image into the media store over verified TLS, and records its digest. Then it sets Ready. The BMC never connects to the image factory. The manager needs a media store; without --media-store it uses a temporary directory in the pod.
configISO
The controller packs the rendered config of the TalosNode into an ISO with the label metal-iso. Talos reads it at boot. A new config gives a new pack.
embeddedInstaller
For a BMC with one media slot. An imager Job builds the installer and writes it to the media store. A change of the config, the version, the schematic or the imager gives a new build key and a new build.
  1. You or the operator create the BootAsset.
  2. The controller builds the artifact, or downloads it. While a build or a download runs, Ready=False with reason Building.
  3. The artifact is complete. Ready=True with reason ArtifactBuilt or ImageDownloaded. status.digest names the bytes.
  4. An approved operation mounts it. The operation pins the digest. Other bytes fail the step.
  5. The inputs change. The controller builds again. The status names the old artifact until the new build is complete.
  6. The install ends with a hand-off, or the boot fails. The operator deletes the BootAssets it made that carry a machine config (configISO, embeddedInstaller). The operation keeps their digests. A retry makes them again.

Rules for the whole spec (the API server refuses a change that breaks one):

  • configISO takes nodeRef and nothing else
  • factory takes talosVersion (and optionally schematic), never nodeRef
  • embeddedInstaller takes nodeRef and talosVersion (and optionally schematic)
FieldTypeDescription
nodeRefobjectNodeRef names the TalosNode whose rendered config the artifact carries. configISO and embeddedInstaller.
namerequiredstringThe name of the object.
schematicobjectSchematic customizes the install image (system extensions, kernel arguments). factory and embeddedInstaller; omitted means the vanilla image.
customizationobjectSchematicCustomization holds the image customization knobs.
extraKernelArgs[]stringExtraKernelArgs append to the image's kernel command line, for example where to put the console (console=ttyS0, what the BMC's serial-over-LAN shows). Do not add talos.config=metal-iso: the operator adds it to the boot medium itself, and the installed system must not carry it.
systemExtensionsobjectSystemExtensions bakes extensions into the image.
officialExtensions[]stringOfficialExtensions are siderolabs/* extension names (siderolabs/drbd).
strategyrequiredstringStrategy selects how the artifact is produced.configISOfactoryembeddedInstaller
talosVersionstringTalosVersion pins the release of the install image. factory and embeddedInstaller.Pattern: ^v[0-9]+\.[0-9]+\.[0-9]+$
FieldTypeDescription
artifactSecretRefobjectArtifactSecretRef is where the built artifact rests (key asset.iso), owned by this BootAsset and GC'd with it. configISO only.
namerequiredstringThe name of the object.
namespacerequiredstringThe namespace of the object.
buildJobstringBuildJob is the imager Job of the latest build, in the operator's namespace. A failed Job is kept so its log can be read. embeddedInstaller only.
buildKeystringBuildKey names the stored artifact in the media store. For an embeddedInstaller it names the inputs: config, Talos version, schematic and imager image; a change of any input is a new key and a new build. For a factory image it is a hash of URL. embeddedInstaller and factory.
conditions[]objectConditions: Ready.
configDigeststringConfigDigest is the rendered config (the TalosNode's status.configDigest) the stored artifact carries. embeddedInstaller only.
digeststringDigest is sha256:<hex> of the artifact bytes.
sizeinteger (int64)Size is the artifact size in bytes.
urlstringURL is where the operator downloads the artifact from. A BMC never fetches it there. factory only.

Columns of kubectl get bootassets (the columns marked wide show only with -o wide):

ColumnValue
NAME.metadata.name
STRATEGY.spec.strategy
NODE.spec.nodeRef.name
SIZE.status.size
Reason Status Meaning
ArtifactBuilt True configISO or embeddedInstaller is complete.
ImageDownloaded True factory: the image is in the media store, and its digest is in the status.
Building False A build runs.
BuildFailed False The build failed. The message gives the error. A failed imager Job stays, so you can read its log.
BuilderUnavailable False No media store, or for embeddedInstaller: no imager image for the Talos version, or a Talos version without embedded config. The message names the flag or field.
SchematicUnavailable False The image factory did not register the schematic, so the image can be missing.
NodeNotFound, ConfigNotRendered False The TalosNode or its config is not there yet.
apiVersion: os.platform-kit.org/v1alpha1
kind: BootAsset
metadata:
name: node-1-config
spec:
strategy: configISO
nodeRef:
name: node-1
Terminal window
$ kubectl get bootassets
NAME STRATEGY NODE SIZE
node-1-config configISO node-1 10240
install-drbd factory
node-3-embedded embeddedInstaller node-3 419430400