Service Spec
@Serializable
User modifiable configuration for a service.
Parameters
name
Name of the service.
labels
User-defined key/value metadata.
task Template
mode
update Config
rollback Config
networks
Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead.
endpoint Spec
Constructors
Link copied to clipboard
constructor(name: String? = null, labels: Map<String, String>? = null, taskTemplate: TaskSpec? = null, mode: ServiceSpecMode? = null, updateConfig: ServiceSpecUpdateConfig? = null, rollbackConfig: ServiceSpecRollbackConfig? = null, networks: List<NetworkAttachmentConfig>? = null, endpointSpec: EndpointSpec? = null)