pub struct MachineDeploymentStrategyRollingUpdate {
pub delete_policy: Option<MachineDeploymentStrategyRollingUpdateDeletePolicy>,
pub max_surge: Option<IntOrString>,
pub max_unavailable: Option<IntOrString>,
}
Expand description
rollingUpdate is the rolling update config params. Present only if MachineDeploymentStrategyType = RollingUpdate.
Fields§
§delete_policy: Option<MachineDeploymentStrategyRollingUpdateDeletePolicy>
deletePolicy defines the policy used by the MachineDeployment to identify nodes to delete when downscaling. Valid values are “Random, “Newest”, “Oldest” When no value is supplied, the default DeletePolicy of MachineSet is used
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 MachineDeploymentStrategyRollingUpdate
impl Clone for MachineDeploymentStrategyRollingUpdate
Source§fn clone(&self) -> MachineDeploymentStrategyRollingUpdate
fn clone(&self) -> MachineDeploymentStrategyRollingUpdate
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for MachineDeploymentStrategyRollingUpdate
impl Default for MachineDeploymentStrategyRollingUpdate
Source§fn default() -> MachineDeploymentStrategyRollingUpdate
fn default() -> MachineDeploymentStrategyRollingUpdate
Source§impl<'de> Deserialize<'de> for MachineDeploymentStrategyRollingUpdate
impl<'de> Deserialize<'de> for MachineDeploymentStrategyRollingUpdate
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 MachineDeploymentStrategyRollingUpdate
impl JsonSchema for MachineDeploymentStrategyRollingUpdate
Source§fn schema_name() -> String
fn schema_name() -> String
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 is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for MachineDeploymentStrategyRollingUpdate
impl PartialEq for MachineDeploymentStrategyRollingUpdate
Source§fn eq(&self, other: &MachineDeploymentStrategyRollingUpdate) -> bool
fn eq(&self, other: &MachineDeploymentStrategyRollingUpdate) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MachineDeploymentStrategyRollingUpdate
Auto Trait Implementations§
impl Freeze for MachineDeploymentStrategyRollingUpdate
impl RefUnwindSafe for MachineDeploymentStrategyRollingUpdate
impl Send for MachineDeploymentStrategyRollingUpdate
impl Sync for MachineDeploymentStrategyRollingUpdate
impl Unpin for MachineDeploymentStrategyRollingUpdate
impl UnwindSafe for MachineDeploymentStrategyRollingUpdate
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