Skip to Content
参考NanoclStatefile

Statefile

Statefile 描述目标 Cargo、虚拟机、资源、任务和 Secret。Nanocl 0.18 要求 ApiVersion: v0.18,Cargo 使用命名 Containers 和可选 InitContainers。

ApiVersion
required
string

使用的 API 版本或远程 URL。

数组元素类型 objects or null (StatefileArg)

传给 Statefile 的参数。

数组元素类型 objects or null (CargoSpec)

要创建并运行的 Cargo 列表。

Group
string or null

设置定义对象的组,默认为 {name_of_directory}.{name_of_file}。

数组元素类型 objects or null (JobPartial)

要创建并运行的任务列表。

null or StatefileMetadata (object)
Namespace
string or null

Cargo 和虚拟机部署所在的命名空间。

数组元素类型 objects or null (ResourcePartial)

要创建的资源列表。

数组元素类型 objects or null (SecretPartial)

要创建的 Secret 列表。

数组元素类型 strings or SubStateDef (object) or null (SubState)

包含在当前状态之前应用的子状态。

数组元素类型 objects or null (VmSpecPartial)

要创建并运行的虚拟机列表。

最后更新于