ServiceTaskSpecRestartPolicy

data class ServiceTaskSpecRestartPolicy(val condition: String? = null, val delay: String? = null, val maxAttempts: Int? = null, val window: String? = null)

Constructors

Link copied to clipboard
constructor(condition: String? = null, delay: String? = null, maxAttempts: Int? = null, window: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val condition: String? = null

Condition for restart

Link copied to clipboard
val delay: String? = null

Delay between restart attempts (ms|s|m|h)

Link copied to clipboard
val maxAttempts: Int? = null

Maximum attempts to restart a given container before giving up (default value is 0, which is ignored)

Link copied to clipboard
val window: String? = null

The time window used to evaluate the restart policy (default value is 0, which is unbounded) (ms|s|m|h)