Skip to main content

Statefile

A Statefile describes the desired Cargoes, virtual machines, Resources, Jobs, and Secrets. Nanocl 0.18 expects ApiVersion: v0.18; Cargoes use named Containers and optional InitContainers.

ApiVersion
required
string

Api version to use or remote url

Array of objects or null (StatefileArg)

Arguments to pass to the Statefile

Array of objects or null (CargoSpec)

List of cargoes to create and run

Group
string or null

Set the group of defined objects default to {name_of_directory}.{name_of_file}

Array of objects or null (JobPartial)

List of jobs to create and run

null or StatefileMetadata (object)
Namespace
string or null

Namespace where the cargoes and virtual machines are deployed

Array of objects or null (ResourcePartial)

List of resources to create

Array of objects or null (SecretPartial)

List of secrets to create

Array of strings or SubStateDef (object) or null (SubState)

Include sub states that will be applied before the current state

Array of objects or null (VmSpecPartial)

List of virtual machines to create and run