Module types/input
APIs
- ContainerCapabilities
- ContainerDevice
- ContainerHealthcheck
- ContainerHost
- ContainerLabel
- ContainerMount
- ContainerMountBindOptions
- ContainerMountTmpfsOptions
- ContainerMountVolumeOptions
- ContainerMountVolumeOptionsLabel
- ContainerNetworkData
- ContainerNetworksAdvanced
- ContainerPort
- ContainerUlimit
- ContainerUpload
- ContainerVolume
- NetworkIpamConfig
- NetworkLabel
- ProviderRegistryAuth
- SecretLabel
- ServiceAuth
- ServiceConvergeConfig
- ServiceEndpointSpec
- ServiceEndpointSpecPort
- ServiceLabel
- ServiceMode
- ServiceModeReplicated
- ServiceRollbackConfig
- ServiceTaskSpec
- ServiceTaskSpecContainerSpec
- ServiceTaskSpecContainerSpecConfig
- ServiceTaskSpecContainerSpecDnsConfig
- ServiceTaskSpecContainerSpecHealthcheck
- ServiceTaskSpecContainerSpecHost
- ServiceTaskSpecContainerSpecLabel
- ServiceTaskSpecContainerSpecMount
- ServiceTaskSpecContainerSpecMountBindOptions
- ServiceTaskSpecContainerSpecMountTmpfsOptions
- ServiceTaskSpecContainerSpecMountVolumeOptions
- ServiceTaskSpecContainerSpecMountVolumeOptionsLabel
- ServiceTaskSpecContainerSpecPrivileges
- ServiceTaskSpecContainerSpecPrivilegesCredentialSpec
- ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext
- ServiceTaskSpecContainerSpecSecret
- ServiceTaskSpecLogDriver
- ServiceTaskSpecPlacement
- ServiceTaskSpecPlacementPlatform
- ServiceTaskSpecResources
- ServiceTaskSpecResourcesLimits
- ServiceTaskSpecResourcesLimitsGenericResources
- ServiceTaskSpecResourcesReservation
- ServiceTaskSpecResourcesReservationGenericResources
- ServiceTaskSpecRestartPolicy
- ServiceUpdateConfig
- VolumeLabel
APIs
interface ContainerCapabilities
interface ContainerCapabilitiesproperty adds
adds?: pulumi.Input<pulumi.Input<string>[]>;list of linux capabilities to add.
property drops
drops?: pulumi.Input<pulumi.Input<string>[]>;list of linux capabilities to drop.
interface ContainerDevice
interface ContainerDeviceproperty containerPath
containerPath?: pulumi.Input<string>;The path in the container where the device will be binded.
property hostPath
hostPath: pulumi.Input<string>;The path on the host where the device is located.
property permissions
permissions?: pulumi.Input<string>;The cgroup permissions given to the
container to access the device.
Defaults to rwm.
interface ContainerHealthcheck
interface ContainerHealthcheckproperty interval
interval?: pulumi.Input<string>;Time between running the check (ms|s|m|h). Default: 0s.
property retries
retries?: pulumi.Input<number>;Consecutive failures needed to report unhealthy. Default: 0.
property startPeriod
startPeriod?: pulumi.Input<string>;Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Default: 0s.
property tests
tests: pulumi.Input<pulumi.Input<string>[]>;Command to run to check health. For example, to run curl -f http://localhost/health set the
command to be ["CMD", "curl", "-f", "http://localhost/health"].
property timeout
timeout?: pulumi.Input<string>;Maximum time to allow one check to run (ms|s|m|h). Default: 0s.
interface ContainerHost
interface ContainerHostproperty host
host: pulumi.Input<string>;Hostname to add.
property ip
ip: pulumi.Input<string>;IP address this hostname should resolve to.
interface ContainerLabel
interface ContainerLabelproperty label
label: pulumi.Input<string>;Name of the label
property value
value: pulumi.Input<string>;Value of the label
interface ContainerMount
interface ContainerMountproperty bindOptions
bindOptions?: pulumi.Input<ContainerMountBindOptions>;Optional configuration for the bind type.
property readOnly
readOnly?: pulumi.Input<boolean>;If true, this volume will be readonly. Defaults to false.
property source
source?: pulumi.Input<string>;The mount source (e.g., a volume name, a host path)
property target
target: pulumi.Input<string>;The container path.
property tmpfsOptions
tmpfsOptions?: pulumi.Input<ContainerMountTmpfsOptions>;Optional configuration for the tmpf type.
property type
type: pulumi.Input<string>;The mount type: valid values are bind|volume|tmpfs.
property volumeOptions
volumeOptions?: pulumi.Input<ContainerMountVolumeOptions>;Optional configuration for the volume type.
interface ContainerMountBindOptions
interface ContainerMountBindOptionsproperty propagation
propagation?: pulumi.Input<string>;A propagation mode with the value.
interface ContainerMountTmpfsOptions
interface ContainerMountTmpfsOptionsproperty mode
mode?: pulumi.Input<number>;The permission mode for the tmpfs mount in an integer.
property sizeBytes
sizeBytes?: pulumi.Input<number>;The size for the tmpfs mount in bytes.
interface ContainerMountVolumeOptions
interface ContainerMountVolumeOptionsproperty driverName
driverName?: pulumi.Input<string>;property driverOptions
driverOptions?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;Options for the driver.
property labels
labels?: pulumi.Input<pulumi.Input<ContainerMountVolumeOptionsLabel>[]>;Adding labels.
property noCopy
noCopy?: pulumi.Input<boolean>;Whether to populate volume with data from the target.
interface ContainerMountVolumeOptionsLabel
interface ContainerMountVolumeOptionsLabelproperty label
label: pulumi.Input<string>;Name of the label
property value
value: pulumi.Input<string>;Value of the label
interface ContainerNetworkData
interface ContainerNetworkDataproperty gateway
gateway?: pulumi.Input<string>;Deprecated: Use networkData instead. The network gateway of the container as read from its
NetworkSettings.
property ipAddress
ipAddress?: pulumi.Input<string>;Deprecated: Use networkData instead. The IP address of the container’s first network it.
property ipPrefixLength
ipPrefixLength?: pulumi.Input<number>;Deprecated: Use networkData instead. The IP prefix length of the container as read from its
NetworkSettings.
property networkName
networkName?: pulumi.Input<string>;interface ContainerNetworksAdvanced
interface ContainerNetworksAdvancedproperty aliases
aliases?: pulumi.Input<pulumi.Input<string>[]>;The network aliases of the container in the specific network.
property ipv4Address
ipv4Address?: pulumi.Input<string>;The IPV4 address of the container in the specific network.
property ipv6Address
ipv6Address?: pulumi.Input<string>;The IPV6 address of the container in the specific network.
property name
name: pulumi.Input<string>;The name of the network.
interface ContainerPort
interface ContainerPortproperty external
external?: pulumi.Input<number>;Port exposed out of the container. If not given a free random port >= 32768 will be used.
property internal
internal: pulumi.Input<number>;Port within the container.
property ip
ip?: pulumi.Input<string>;IP address this hostname should resolve to.
property protocol
protocol?: pulumi.Input<string>;Protocol that can be used over this port,
defaults to tcp.
interface ContainerUlimit
interface ContainerUlimitproperty hard
hard: pulumi.Input<number>;property name
name: pulumi.Input<string>;property soft
soft: pulumi.Input<number>;interface ContainerUpload
interface ContainerUploadproperty content
content?: pulumi.Input<string>;Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
property contentBase64
contentBase64?: pulumi.Input<string>;property executable
executable?: pulumi.Input<boolean>;If true, the file will be uploaded with user executable permission. Defaults to false.
property file
file: pulumi.Input<string>;path to a file in the container.
property source
source?: pulumi.Input<string>;A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state.
property sourceHash
sourceHash?: pulumi.Input<string>;If using source, this will force an update if the file content has updated but the filename has not.
interface ContainerVolume
interface ContainerVolumeproperty containerPath
containerPath?: pulumi.Input<string>;The path in the container where the device will be binded.
property fromContainer
fromContainer?: pulumi.Input<string>;The container where the volume is coming from.
property hostPath
hostPath?: pulumi.Input<string>;The path on the host where the device is located.
property readOnly
readOnly?: pulumi.Input<boolean>;If true, this volume will be readonly. Defaults to false.
property volumeName
volumeName?: pulumi.Input<string>;The name of the docker volume which should be mounted.
interface NetworkIpamConfig
interface NetworkIpamConfigproperty auxAddress
auxAddress?: pulumi.Input<{[key: string]: any}>;property gateway
gateway?: pulumi.Input<string>;property ipRange
ipRange?: pulumi.Input<string>;property subnet
subnet?: pulumi.Input<string>;interface NetworkLabel
interface NetworkLabelproperty label
label: pulumi.Input<string>;Name of the label
property value
value: pulumi.Input<string>;Value of the label
interface ProviderRegistryAuth
interface ProviderRegistryAuthproperty address
address: pulumi.Input<string>;property configFile
configFile?: pulumi.Input<string>;property configFileContent
configFileContent?: pulumi.Input<string>;property password
password?: pulumi.Input<string>;property username
username?: pulumi.Input<string>;interface SecretLabel
interface SecretLabelproperty label
label: pulumi.Input<string>;Name of the label
property value
value: pulumi.Input<string>;Value of the label
interface ServiceAuth
interface ServiceAuthproperty password
password?: pulumi.Input<string>;The password to use for authenticating to the registry. If this is blank, the DOCKER_REGISTRY_PASS is also be checked.
property serverAddress
serverAddress: pulumi.Input<string>;The address of the registry server
property username
username?: pulumi.Input<string>;The username to use for authenticating to the registry. If this is blank, the DOCKER_REGISTRY_USER is also be checked.
interface ServiceConvergeConfig
interface ServiceConvergeConfigproperty delay
delay?: pulumi.Input<string>;Time between each the check to check docker endpoint (ms|s|m|h). For example, to check if
all tasks are up when a service is created, or to check if all tasks are successfully updated on an update. Default: 7s.
property timeout
timeout?: pulumi.Input<string>;The timeout of the service to reach the desired state (s|m). Default: 3m.
interface ServiceEndpointSpec
interface ServiceEndpointSpecproperty mode
mode?: pulumi.Input<string>;The mode of resolution to use for internal load balancing between tasks. (vip|dnsrr). Default: vip.
property ports
ports?: pulumi.Input<pulumi.Input<ServiceEndpointSpecPort>[]>;See Ports below for details.
interface ServiceEndpointSpecPort
interface ServiceEndpointSpecPortproperty name
name?: pulumi.Input<string>;The name of the Docker service.
property protocol
protocol?: pulumi.Input<string>;Protocol that can be used over this port: tcp|udp|sctp. Default: tcp.
property publishMode
publishMode?: pulumi.Input<string>;Represents the mode in which the port is to be published: ingress|host
property publishedPort
publishedPort?: pulumi.Input<number>;The port on the swarm hosts. If not set the value of targetPort will be used.
property targetPort
targetPort: pulumi.Input<number>;Port inside the container.
interface ServiceLabel
interface ServiceLabelproperty label
label: pulumi.Input<string>;Name of the label
property value
value: pulumi.Input<string>;Value of the label
interface ServiceMode
interface ServiceModeproperty global
global?: pulumi.Input<boolean>;set it to true to run the service in the global mode
property replicated
replicated?: pulumi.Input<ServiceModeReplicated>;, which contains atm only the amount of replicas
interface ServiceModeReplicated
interface ServiceModeReplicatedproperty replicas
replicas?: pulumi.Input<number>;interface ServiceRollbackConfig
interface ServiceRollbackConfigproperty delay
delay?: pulumi.Input<string>;Delay between restart attempts (ms|s|m|h)
all tasks are up when a service is created, or to check if all tasks are successfully updated on an update. Default: 7s.
property failureAction
failureAction?: pulumi.Input<string>;Action on update failure: pause|continue|rollback.
property maxFailureRatio
maxFailureRatio?: pulumi.Input<string>;The failure rate to tolerate during an update as float. Important: the floatneed to be wrapped in a string to avoid internal
casting and precision errors.
property monitor
monitor?: pulumi.Input<string>;Duration after each task update to monitor for failure (ns|us|ms|s|m|h)
property order
order?: pulumi.Input<string>;Update order either ‘stop-first’ or ‘start-first’.
property parallelism
parallelism?: pulumi.Input<number>;The maximum number of tasks to be updated in one iteration simultaneously (0 to update all at once).
interface ServiceTaskSpec
interface ServiceTaskSpecproperty containerSpec
containerSpec: pulumi.Input<ServiceTaskSpecContainerSpec>;See ContainerSpec below for details.
property forceUpdate
forceUpdate?: pulumi.Input<number>;A counter that triggers an update even if no relevant parameters have been changed. See Docker Spec.
property logDriver
logDriver?: pulumi.Input<ServiceTaskSpecLogDriver>;See Log Driver below for details.
property networks
networks?: pulumi.Input<pulumi.Input<string>[]>;Ids of the networks in which the container will be put in.
property placement
placement?: pulumi.Input<ServiceTaskSpecPlacement>;See Placement below for details.
property resources
resources?: pulumi.Input<ServiceTaskSpecResources>;See Resources below for details.
property restartPolicy
restartPolicy?: pulumi.Input<ServiceTaskSpecRestartPolicy>;See Restart Policy below for details.
property runtime
runtime?: pulumi.Input<string>;Runtime is the type of runtime specified for the task executor. See Docker Runtime.
interface ServiceTaskSpecContainerSpec
interface ServiceTaskSpecContainerSpecproperty args
args?: pulumi.Input<pulumi.Input<string>[]>;Arguments to the command.
property commands
commands?: pulumi.Input<pulumi.Input<string>[]>;The command to be run in the image.
property configs
configs?: pulumi.Input<pulumi.Input<ServiceTaskSpecContainerSpecConfig>[]>;See Configs below for details.
property dir
dir?: pulumi.Input<string>;The working directory for commands to run in.
property dnsConfig
dnsConfig?: pulumi.Input<ServiceTaskSpecContainerSpecDnsConfig>;See DNS Config below for details.
property env
env?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A list of environment variables in the form VAR=value.
property groups
groups?: pulumi.Input<pulumi.Input<string>[]>;A list of additional groups that the container process will run as.
property healthcheck
healthcheck?: pulumi.Input<ServiceTaskSpecContainerSpecHealthcheck>;See Healthcheck below for details.
property hostname
hostname?: pulumi.Input<string>;The hostname to use for the container, as a valid RFC 1123 hostname.
property hosts
hosts?: pulumi.Input<pulumi.Input<ServiceTaskSpecContainerSpecHost>[]>;property image
image: pulumi.Input<string>;The image used to create the Docker service.
property isolation
isolation?: pulumi.Input<string>;Isolation technology of the containers running the service. (Windows only). Valid values are: default|process|hyperv
property labels
labels?: pulumi.Input<pulumi.Input<ServiceTaskSpecContainerSpecLabel>[]>;See Labels below for details.
property mounts
mounts?: pulumi.Input<pulumi.Input<ServiceTaskSpecContainerSpecMount>[]>;See Mounts below for details.
property privileges
privileges?: pulumi.Input<ServiceTaskSpecContainerSpecPrivileges>;See Privileges below for details.
property readOnly
readOnly?: pulumi.Input<boolean>;Mount the container’s root filesystem as read only.
property secrets
secrets?: pulumi.Input<pulumi.Input<ServiceTaskSpecContainerSpecSecret>[]>;See Secrets below for details.
property stopGracePeriod
stopGracePeriod?: pulumi.Input<string>;Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h).
property stopSignal
stopSignal?: pulumi.Input<string>;Signal to stop the container.
property user
user?: pulumi.Input<string>;The user inside the container.
interface ServiceTaskSpecContainerSpecConfig
interface ServiceTaskSpecContainerSpecConfigproperty configId
configId: pulumi.Input<string>;ConfigID represents the ID of the specific config.
property configName
configName?: pulumi.Input<string>;The name of the config that this references, but internally it is just provided for lookup/display purposes
property fileGid
fileGid?: pulumi.Input<string>;Represents the file GID. Defaults: 0
property fileMode
fileMode?: pulumi.Input<number>;Represents the FileMode of the file. Defaults: 0444
property fileName
fileName: pulumi.Input<string>;Represents the final filename in the filesystem. The specific target file that the config data is written within the docker container, e.g. /root/config/config.json
property fileUid
fileUid?: pulumi.Input<string>;Represents the file UID. Defaults: 0
interface ServiceTaskSpecContainerSpecDnsConfig
interface ServiceTaskSpecContainerSpecDnsConfigproperty nameservers
nameservers: pulumi.Input<pulumi.Input<string>[]>;The IP addresses of the name servers, for example, 8.8.8.8
property options
options?: pulumi.Input<pulumi.Input<string>[]>;A list of internal resolver variables to be modified, for example, debug, ndots:3
property searches
searches?: pulumi.Input<pulumi.Input<string>[]>;A search list for host-name lookup.
interface ServiceTaskSpecContainerSpecHealthcheck
interface ServiceTaskSpecContainerSpecHealthcheckproperty interval
interval?: pulumi.Input<string>;Time between running the check (ms|s|m|h). Default: 0s.
property retries
retries?: pulumi.Input<number>;Consecutive failures needed to report unhealthy. Default: 0.
property startPeriod
startPeriod?: pulumi.Input<string>;Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Default: 0s.
property tests
tests: pulumi.Input<pulumi.Input<string>[]>;Command to run to check health. For example, to run curl -f http://localhost/health set the
command to be ["CMD", "curl", "-f", "http://localhost/health"].
property timeout
timeout?: pulumi.Input<string>;Maximum time to allow one check to run (ms|s|m|h). Default: 0s.
interface ServiceTaskSpecContainerSpecHost
interface ServiceTaskSpecContainerSpecHostproperty host
host: pulumi.Input<string>;A list of hostname/IP mappings to add to the container’s hosts file.
property ip
ip: pulumi.Input<string>;The ip
interface ServiceTaskSpecContainerSpecLabel
interface ServiceTaskSpecContainerSpecLabelproperty label
label: pulumi.Input<string>;Name of the label
property value
value: pulumi.Input<string>;Value of the label
interface ServiceTaskSpecContainerSpecMount
interface ServiceTaskSpecContainerSpecMountproperty bindOptions
bindOptions?: pulumi.Input<ServiceTaskSpecContainerSpecMountBindOptions>;Optional configuration for the bind type.
property readOnly
readOnly?: pulumi.Input<boolean>;Mount the container’s root filesystem as read only.
property source
source?: pulumi.Input<string>;The mount source (e.g., a volume name, a host path)
property target
target: pulumi.Input<string>;The container path.
property tmpfsOptions
tmpfsOptions?: pulumi.Input<ServiceTaskSpecContainerSpecMountTmpfsOptions>;Optional configuration for the tmpf type.
property type
type: pulumi.Input<string>;SELinux type label
property volumeOptions
volumeOptions?: pulumi.Input<ServiceTaskSpecContainerSpecMountVolumeOptions>;Optional configuration for the volume type.
interface ServiceTaskSpecContainerSpecMountBindOptions
interface ServiceTaskSpecContainerSpecMountBindOptionsproperty propagation
propagation?: pulumi.Input<string>;A propagation mode with the value.
interface ServiceTaskSpecContainerSpecMountTmpfsOptions
interface ServiceTaskSpecContainerSpecMountTmpfsOptionsproperty mode
mode?: pulumi.Input<number>;See Mode below for details.
property sizeBytes
sizeBytes?: pulumi.Input<number>;The size for the tmpfs mount in bytes.
interface ServiceTaskSpecContainerSpecMountVolumeOptions
interface ServiceTaskSpecContainerSpecMountVolumeOptionsproperty driverName
driverName?: pulumi.Input<string>;property driverOptions
driverOptions?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;property labels
labels?: pulumi.Input<pulumi.Input<ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>[]>;See Labels below for details.
property noCopy
noCopy?: pulumi.Input<boolean>;Whether to populate volume with data from the target.
interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel
interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabelproperty label
label: pulumi.Input<string>;Name of the label
property value
value: pulumi.Input<string>;Value of the label
interface ServiceTaskSpecContainerSpecPrivileges
interface ServiceTaskSpecContainerSpecPrivilegesproperty credentialSpec
credentialSpec?: pulumi.Input<ServiceTaskSpecContainerSpecPrivilegesCredentialSpec>;For managed service account (Windows only)
property seLinuxContext
seLinuxContext?: pulumi.Input<ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext>;SELinux labels of the container
interface ServiceTaskSpecContainerSpecPrivilegesCredentialSpec
interface ServiceTaskSpecContainerSpecPrivilegesCredentialSpecproperty file
file?: pulumi.Input<string>;Load credential spec from this file.
property registry
registry?: pulumi.Input<string>;Load credential spec from this value in the Windows registry.
interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext
interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextproperty disable
disable?: pulumi.Input<boolean>;Disable SELinux
property level
level?: pulumi.Input<string>;SELinux level label
property role
role?: pulumi.Input<string>;SELinux role label
property type
type?: pulumi.Input<string>;SELinux type label
property user
user?: pulumi.Input<string>;The user inside the container.
interface ServiceTaskSpecContainerSpecSecret
interface ServiceTaskSpecContainerSpecSecretproperty fileGid
fileGid?: pulumi.Input<string>;Represents the file GID. Defaults: 0
property fileMode
fileMode?: pulumi.Input<number>;Represents the FileMode of the file. Defaults: 0444
property fileName
fileName: pulumi.Input<string>;Represents the final filename in the filesystem. The specific target file that the secret data is written within the docker container, e.g. /root/secret/secret.json
property fileUid
fileUid?: pulumi.Input<string>;Represents the file UID. Defaults: 0
property secretId
secretId: pulumi.Input<string>;ConfigID represents the ID of the specific secret.
property secretName
secretName?: pulumi.Input<string>;The name of the secret that this references, but internally it is just provided for lookup/display purposes
interface ServiceTaskSpecLogDriver
interface ServiceTaskSpecLogDriverproperty name
name: pulumi.Input<string>;The logging driver to use. Either (none|json-file|syslog|journald|gelf|fluentd|awslogs|splunk|etwlogs|gcplogs).
property options
options?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;The options for the logging driver, e.g.
interface ServiceTaskSpecPlacement
interface ServiceTaskSpecPlacementproperty constraints
constraints?: pulumi.Input<pulumi.Input<string>[]>;An array of constraints. e.g.: node.role==manager
property platforms
platforms?: pulumi.Input<pulumi.Input<ServiceTaskSpecPlacementPlatform>[]>;Platforms stores all the platforms that the service’s image can run on
property prefs
prefs?: pulumi.Input<pulumi.Input<string>[]>;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
interface ServiceTaskSpecPlacementPlatform
interface ServiceTaskSpecPlacementPlatformproperty architecture
architecture: pulumi.Input<string>;The architecture, e.g., amd64
property os
os: pulumi.Input<string>;The operation system, e.g., linux
interface ServiceTaskSpecResources
interface ServiceTaskSpecResourcesproperty limits
limits?: pulumi.Input<ServiceTaskSpecResourcesLimits>;Describes the resources which can be advertised by a node and requested by a task.
property reservation
reservation?: pulumi.Input<ServiceTaskSpecResourcesReservation>;An object describing the resources which can be advertised by a node and requested by a task.
interface ServiceTaskSpecResourcesLimits
interface ServiceTaskSpecResourcesLimitsproperty genericResources
genericResources?: pulumi.Input<ServiceTaskSpecResourcesLimitsGenericResources>;User-defined resources can be either Integer resources (e.g, SSD=3) or String resources (e.g, GPU=UUID1)
property memoryBytes
memoryBytes?: pulumi.Input<number>;The amount of memory in bytes the container allocates
property nanoCpus
nanoCpus?: pulumi.Input<number>;CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least 1000000
interface ServiceTaskSpecResourcesLimitsGenericResources
interface ServiceTaskSpecResourcesLimitsGenericResourcesproperty discreteResourcesSpecs
discreteResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;The Integer resources, delimited by =
property namedResourcesSpecs
namedResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;The String resources, delimited by =
interface ServiceTaskSpecResourcesReservation
interface ServiceTaskSpecResourcesReservationproperty genericResources
genericResources?: pulumi.Input<ServiceTaskSpecResourcesReservationGenericResources>;User-defined resources can be either Integer resources (e.g, SSD=3) or String resources (e.g, GPU=UUID1)
property memoryBytes
memoryBytes?: pulumi.Input<number>;The amount of memory in bytes the container allocates
property nanoCpus
nanoCpus?: pulumi.Input<number>;CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least 1000000
interface ServiceTaskSpecResourcesReservationGenericResources
interface ServiceTaskSpecResourcesReservationGenericResourcesproperty discreteResourcesSpecs
discreteResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;The Integer resources, delimited by =
property namedResourcesSpecs
namedResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;The String resources, delimited by =
interface ServiceTaskSpecRestartPolicy
interface ServiceTaskSpecRestartPolicyproperty condition
condition?: pulumi.Input<string>;Condition for restart: (none|on-failure|any)
property delay
delay?: pulumi.Input<string>;Delay between restart attempts (ms|s|m|h)
property maxAttempts
maxAttempts?: pulumi.Input<number>;Maximum attempts to restart a given container before giving up (default value is 0, which is ignored)
property window
window?: pulumi.Input<string>;The time window used to evaluate the restart policy (default value is 0, which is unbounded) (ms|s|m|h)
interface ServiceUpdateConfig
interface ServiceUpdateConfigproperty delay
delay?: pulumi.Input<string>;Delay between updates (ns|us|ms|s|m|h), e.g. 5s.
property failureAction
failureAction?: pulumi.Input<string>;Action on update failure: pause|continue|rollback.
property maxFailureRatio
maxFailureRatio?: pulumi.Input<string>;The failure rate to tolerate during an update as float. Important: the floatneed to be wrapped in a string to avoid internal
casting and precision errors.
property monitor
monitor?: pulumi.Input<string>;Duration after each task update to monitor for failure (ns|us|ms|s|m|h)
property order
order?: pulumi.Input<string>;Update order either ‘stop-first’ or ‘start-first’.
property parallelism
parallelism?: pulumi.Input<number>;The maximum number of tasks to be updated in one iteration simultaneously (0 to update all at once).
interface VolumeLabel
interface VolumeLabelproperty label
label: pulumi.Input<string>;property value
value: pulumi.Input<string>;