pub struct MachineHealthCheckSpec {
pub cluster_name: String,
pub max_unhealthy: Option<IntOrString>,
pub node_startup_timeout: Option<String>,
pub remediation_template: Option<ObjectReference>,
pub selector: MachineHealthCheckSelector,
pub unhealthy_conditions: Option<Vec<MachineHealthCheckUnhealthyConditions>>,
pub unhealthy_range: Option<String>,
}Expand description
Specification of machine health check policy
Fields§
§cluster_name: StringclusterName is the name of the Cluster this object belongs to.
max_unhealthy: Option<IntOrString>Any further remediation is only allowed if at most “MaxUnhealthy” machines selected by “selector” are not healthy.
Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/issues/10722 for more details.
node_startup_timeout: Option<String>nodeStartupTimeout allows to set the maximum time for MachineHealthCheck
to consider a Machine unhealthy if a corresponding Node isn’t associated
through a Spec.ProviderID field.
The duration set in this field is compared to the greatest of:
- Cluster’s infrastructure ready condition timestamp (if and when available)
- Control Plane’s initialized condition timestamp (if and when available)
- Machine’s infrastructure ready condition timestamp (if and when available)
- Machine’s metadata creation timestamp
Defaults to 10 minutes. If you wish to disable this feature, set the value explicitly to 0.
remediation_template: Option<ObjectReference>remediationTemplate is a reference to a remediation template provided by an infrastructure provider.
This field is completely optional, when filled, the MachineHealthCheck controller creates a new object from the template referenced and hands off remediation of the machine to a controller that lives outside of Cluster API.
selector: MachineHealthCheckSelectorLabel selector to match machines whose health will be exercised
unhealthy_conditions: Option<Vec<MachineHealthCheckUnhealthyConditions>>unhealthyConditions contains a list of the conditions that determine whether a node is considered unhealthy. The conditions are combined in a logical OR, i.e. if any of the conditions is met, the node is unhealthy.
unhealthy_range: Option<String>Any further remediation is only allowed if the number of machines selected by “selector” as not healthy is within the range of “UnhealthyRange”. Takes precedence over MaxUnhealthy. Eg. “[3-5]” - This means that remediation will be allowed only when: (a) there are at least 3 unhealthy machines (and) (b) there are at most 5 unhealthy machines
Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/issues/10722 for more details.
Trait Implementations§
Source§impl Clone for MachineHealthCheckSpec
impl Clone for MachineHealthCheckSpec
Source§fn clone(&self) -> MachineHealthCheckSpec
fn clone(&self) -> MachineHealthCheckSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MachineHealthCheckSpec
impl Debug for MachineHealthCheckSpec
Source§impl Default for MachineHealthCheckSpec
impl Default for MachineHealthCheckSpec
Source§fn default() -> MachineHealthCheckSpec
fn default() -> MachineHealthCheckSpec
Source§impl<'de> Deserialize<'de> for MachineHealthCheckSpec
impl<'de> Deserialize<'de> for MachineHealthCheckSpec
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 MachineHealthCheckSpec
impl JsonSchema for MachineHealthCheckSpec
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for MachineHealthCheckSpec
impl PartialEq for MachineHealthCheckSpec
Source§impl Serialize for MachineHealthCheckSpec
impl Serialize for MachineHealthCheckSpec
impl StructuralPartialEq for MachineHealthCheckSpec
Auto Trait Implementations§
impl Freeze for MachineHealthCheckSpec
impl RefUnwindSafe for MachineHealthCheckSpec
impl Send for MachineHealthCheckSpec
impl Sync for MachineHealthCheckSpec
impl Unpin for MachineHealthCheckSpec
impl UnwindSafe for MachineHealthCheckSpec
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