ServiceTaskSpecPlacementArgs

data class ServiceTaskSpecPlacementArgs(val constraints: Output<List<String>>? = null, val maxReplicas: Output<Int>? = null, val platforms: Output<List<ServiceTaskSpecPlacementPlatformArgs>>? = null, val prefs: Output<List<String>>? = null) : ConvertibleToJava<ServiceTaskSpecPlacementArgs>

Constructors

Link copied to clipboard
constructor(constraints: Output<List<String>>? = null, maxReplicas: Output<Int>? = null, platforms: Output<List<ServiceTaskSpecPlacementPlatformArgs>>? = null, prefs: Output<List<String>>? = null)

Properties

Link copied to clipboard
val constraints: Output<List<String>>? = null

An array of constraints. e.g.: node.role==manager

Link copied to clipboard
val maxReplicas: Output<Int>? = null

Maximum number of replicas for per node (default value is 0, which is unlimited)

Link copied to clipboard

Platforms stores all the platforms that the service's image can run on

Link copied to clipboard
val prefs: Output<List<String>>? = null

Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.: spread=node.role.manager

Functions

Link copied to clipboard
open override fun toJava(): ServiceTaskSpecPlacementArgs