TaskSpec

@Serializable
data class TaskSpec(val pluginSpec: TaskSpecPluginSpec? = null, val containerSpec: TaskSpecContainerSpec? = null, val networkAttachmentSpec: TaskSpecNetworkAttachmentSpec? = null, val resources: TaskSpecResources? = null, val restartPolicy: TaskSpecRestartPolicy? = null, val placement: TaskSpecPlacement? = null, val forceUpdate: Int? = null, val runtime: String? = null, val networks: List<NetworkAttachmentConfig>? = null, val logDriver: TaskSpecLogDriver? = null)

User modifiable task configuration.

Parameters

pluginSpec
containerSpec
networkAttachmentSpec
resources
restartPolicy
placement
forceUpdate

A counter that triggers an update even if no relevant parameters have been changed.

runtime

Runtime is the type of runtime specified for the task executor.

networks

Specifies which networks the service should attach to.

logDriver

Constructors

Link copied to clipboard
constructor(pluginSpec: TaskSpecPluginSpec? = null, containerSpec: TaskSpecContainerSpec? = null, networkAttachmentSpec: TaskSpecNetworkAttachmentSpec? = null, resources: TaskSpecResources? = null, restartPolicy: TaskSpecRestartPolicy? = null, placement: TaskSpecPlacement? = null, forceUpdate: Int? = null, runtime: String? = null, networks: List<NetworkAttachmentConfig>? = null, logDriver: TaskSpecLogDriver? = null)

Properties

Link copied to clipboard
@SerialName(value = "ContainerSpec")
val containerSpec: TaskSpecContainerSpec?
Link copied to clipboard
@SerialName(value = "ForceUpdate")
val forceUpdate: Int?
Link copied to clipboard
@SerialName(value = "LogDriver")
val logDriver: TaskSpecLogDriver?
Link copied to clipboard
@SerialName(value = "NetworkAttachmentSpec")
val networkAttachmentSpec: TaskSpecNetworkAttachmentSpec?
Link copied to clipboard
@SerialName(value = "Networks")
val networks: List<NetworkAttachmentConfig>?
Link copied to clipboard
@SerialName(value = "Placement")
val placement: TaskSpecPlacement?
Link copied to clipboard
@SerialName(value = "PluginSpec")
val pluginSpec: TaskSpecPluginSpec?
Link copied to clipboard
@SerialName(value = "Resources")
val resources: TaskSpecResources?
Link copied to clipboard
@SerialName(value = "RestartPolicy")
val restartPolicy: TaskSpecRestartPolicy?
Link copied to clipboard
@SerialName(value = "Runtime")
val runtime: String?