Service

class Service : KotlinCustomResource

Import

Example

Assuming you created a service as follows #!/bin/bash docker service create --name foo -p 8080:80 nginx prints th ID 4pcphbxkfn2rffhbhe6czytgi you provide the definition for the resource as follows terraform resource "docker_service" "foo" { name = "foo" task_spec { container_spec { image = "nginx" } } endpoint_spec { ports { target_port = "80" published_port = "8080" } } } then the import command is as follows #!/bin/bash

$ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi

Properties

Link copied to clipboard
val auth: Output<ServiceAuth>?

Configuration for the authentication for pulling the images of the service

Link copied to clipboard

A configuration to ensure that a service converges aka reaches the desired that of all task up and running

Link copied to clipboard

Properties that can be configured to access and load balance a service

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labels: Output<List<ServiceLabel>>

User-defined key/value metadata

Link copied to clipboard
val mode: Output<ServiceMode>

Scheduling mode for the service

Link copied to clipboard
val name: Output<String>

Name of the service

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specification for the rollback strategy of the service

Link copied to clipboard

User modifiable task configuration

Link copied to clipboard

Specification for the update strategy of the service

Link copied to clipboard
val urn: Output<String>