RollingUpgradePolicyArgs

data class RollingUpgradePolicyArgs(val enableCrossZoneUpgrade: Output<Boolean>? = null, val maxBatchInstancePercent: Output<Int>? = null, val maxSurge: Output<Boolean>? = null, val maxUnhealthyInstancePercent: Output<Int>? = null, val maxUnhealthyUpgradedInstancePercent: Output<Int>? = null, val pauseTimeBetweenBatches: Output<String>? = null, val prioritizeUnhealthyInstances: Output<Boolean>? = null, val rollbackFailedInstancesOnPolicyBreach: Output<Boolean>? = null) : ConvertibleToJava<RollingUpgradePolicyArgs>

The configuration parameters used while performing a rolling upgrade.

Constructors

Link copied to clipboard
constructor(enableCrossZoneUpgrade: Output<Boolean>? = null, maxBatchInstancePercent: Output<Int>? = null, maxSurge: Output<Boolean>? = null, maxUnhealthyInstancePercent: Output<Int>? = null, maxUnhealthyUpgradedInstancePercent: Output<Int>? = null, pauseTimeBetweenBatches: Output<String>? = null, prioritizeUnhealthyInstances: Output<Boolean>? = null, rollbackFailedInstancesOnPolicyBreach: Output<Boolean>? = null)

Properties

Link copied to clipboard
val enableCrossZoneUpgrade: Output<Boolean>? = null

Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size.

Link copied to clipboard
val maxBatchInstancePercent: Output<Int>? = null

The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.

Link copied to clipboard
val maxSurge: Output<Boolean>? = null

Create new virtual machines to upgrade the scale set, rather than updating the existing virtual machines. Existing virtual machines will be deleted once the new virtual machines are created for each batch.

Link copied to clipboard
val maxUnhealthyInstancePercent: Output<Int>? = null

The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.

Link copied to clipboard

The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.

Link copied to clipboard
val pauseTimeBetweenBatches: Output<String>? = null

The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).

Link copied to clipboard

Upgrade all unhealthy instances in a scale set before any healthy instances.

Link copied to clipboard

Rollback failed instances to previous model if the Rolling Upgrade policy is violated.

Functions

Link copied to clipboard
open override fun toJava(): RollingUpgradePolicyArgs