ServiceTaskSpecPlacement constructor

const ServiceTaskSpecPlacement({
  1. Input<List<String>?>? constraints,
  2. Input<int?>? maxReplicas,
  3. Input<List<ServiceTaskSpecPlacementPlatform>?>? platforms,
  4. Input<List<String>?>? prefs,
})

Creates a new ServiceTaskSpecPlacement. constraints An array of constraints. e.g.: node.role==manager maxReplicas Maximum number of replicas for per node (default value is 0, which is unlimited) platforms Platforms stores all the platforms that the service's image can run on prefs 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

Implementation

const ServiceTaskSpecPlacement({
  this.constraints,
  this.maxReplicas,
  this.platforms,
  this.prefs,
});