pub struct ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate {
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 ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Clone for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§fn clone(
&self,
) -> ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
fn clone( &self, ) -> ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Default for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§fn default() -> ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
fn default() -> ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§impl<'de> Deserialize<'de> for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl<'de> Deserialize<'de> for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
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 ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl JsonSchema for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
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 ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl PartialEq for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Source§fn eq(
&self,
other: &ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate,
) -> bool
fn eq( &self, other: &ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate, ) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
Auto Trait Implementations§
impl Freeze for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl RefUnwindSafe for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Send for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Sync for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl Unpin for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
impl UnwindSafe for ClusterClassWorkersMachineDeploymentsRolloutStrategyRollingUpdate
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