pub struct MachineDeploymentRolloutStrategyRollingUpdate {
pub max_surge: Option<IntOrString>,
pub max_unavailable: Option<IntOrString>,
}Expand description
rollingUpdate is the rolling update config params. Present only if type = RollingUpdate.
Fields§
§max_surge: Option<IntOrString>maxSurge is the maximum number of machines that can be scheduled above the desired number of machines. Value can be an absolute number (ex: 5) or a percentage of desired machines (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 1. Example: when this is set to 30%, the new MachineSet can be scaled up immediately when the rolling update starts, such that the total number of old and new machines do not exceed 130% of desired machines. Once old machines have been killed, new MachineSet can be scaled up further, ensuring that total number of machines running at any time during the update is at most 130% of desired machines.
maxUnavailable is the maximum number of machines that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired machines (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 0. Example: when this is set to 30%, the old MachineSet can be scaled down to 70% of desired machines immediately when the rolling update starts. Once new machines are ready, old MachineSet can be scaled down further, followed by scaling up the new MachineSet, ensuring that the total number of machines available at all times during the update is at least 70% of desired machines.
Trait Implementations§
Source§impl Clone for MachineDeploymentRolloutStrategyRollingUpdate
impl Clone for MachineDeploymentRolloutStrategyRollingUpdate
Source§fn clone(&self) -> MachineDeploymentRolloutStrategyRollingUpdate
fn clone(&self) -> MachineDeploymentRolloutStrategyRollingUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for MachineDeploymentRolloutStrategyRollingUpdate
impl Default for MachineDeploymentRolloutStrategyRollingUpdate
Source§fn default() -> MachineDeploymentRolloutStrategyRollingUpdate
fn default() -> MachineDeploymentRolloutStrategyRollingUpdate
Source§impl<'de> Deserialize<'de> for MachineDeploymentRolloutStrategyRollingUpdate
impl<'de> Deserialize<'de> for MachineDeploymentRolloutStrategyRollingUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for MachineDeploymentRolloutStrategyRollingUpdate
impl JsonSchema for MachineDeploymentRolloutStrategyRollingUpdate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for MachineDeploymentRolloutStrategyRollingUpdate
impl PartialEq for MachineDeploymentRolloutStrategyRollingUpdate
Source§fn eq(&self, other: &MachineDeploymentRolloutStrategyRollingUpdate) -> bool
fn eq(&self, other: &MachineDeploymentRolloutStrategyRollingUpdate) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MachineDeploymentRolloutStrategyRollingUpdate
Auto Trait Implementations§
impl Freeze for MachineDeploymentRolloutStrategyRollingUpdate
impl RefUnwindSafe for MachineDeploymentRolloutStrategyRollingUpdate
impl Send for MachineDeploymentRolloutStrategyRollingUpdate
impl Sync for MachineDeploymentRolloutStrategyRollingUpdate
impl Unpin for MachineDeploymentRolloutStrategyRollingUpdate
impl UnsafeUnpin for MachineDeploymentRolloutStrategyRollingUpdate
impl UnwindSafe for MachineDeploymentRolloutStrategyRollingUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more