InstanceTemplateScheduling

data class InstanceTemplateScheduling(val automaticRestart: Boolean? = null, val instanceTerminationAction: String? = null, val localSsdRecoveryTimeouts: List<InstanceTemplateSchedulingLocalSsdRecoveryTimeout>? = null, val maintenanceInterval: String? = null, val maxRunDuration: InstanceTemplateSchedulingMaxRunDuration? = null, val minNodeCpus: Int? = null, val nodeAffinities: List<InstanceTemplateSchedulingNodeAffinity>? = null, val onHostMaintenance: String? = null, val preemptible: Boolean? = null, val provisioningModel: String? = null)

Constructors

Link copied to clipboard
constructor(automaticRestart: Boolean? = null, instanceTerminationAction: String? = null, localSsdRecoveryTimeouts: List<InstanceTemplateSchedulingLocalSsdRecoveryTimeout>? = null, maintenanceInterval: String? = null, maxRunDuration: InstanceTemplateSchedulingMaxRunDuration? = null, minNodeCpus: Int? = null, nodeAffinities: List<InstanceTemplateSchedulingNodeAffinity>? = null, onHostMaintenance: String? = null, preemptible: Boolean? = null, provisioningModel: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.

Link copied to clipboard

Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here

Link copied to clipboard
Link copied to clipboard

Beta - The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below. The max_run_duration block supports:

Link copied to clipboard
val minNodeCpus: Int? = null
Link copied to clipboard

Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.

Link copied to clipboard

Defines the maintenance behavior for this instance.

Link copied to clipboard
val preemptible: Boolean? = null

Allows instance to be preempted. This defaults to false. Read more on this here.

Link copied to clipboard

Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here