pub struct MachineHealthCheckChecks {
pub node_startup_timeout_seconds: Option<i32>,
pub unhealthy_machine_conditions: Option<Vec<MachineHealthCheckChecksUnhealthyMachineConditions>>,
pub unhealthy_node_conditions: Option<Vec<MachineHealthCheckChecksUnhealthyNodeConditions>>,
}Expand description
checks are the checks that are used to evaluate if a Machine is healthy.
Independent of this configuration the MachineHealthCheck controller will always
flag Machines with cluster.x-k8s.io/remediate-machine annotation and
Machines with deleted Nodes as unhealthy.
Furthermore, if checks.nodeStartupTimeoutSeconds is not set it is defaulted to 10 minutes and evaluated accordingly.
Fields§
§node_startup_timeout_seconds: Option<i32>nodeStartupTimeoutSeconds 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.
unhealthy_machine_conditions: Option<Vec<MachineHealthCheckChecksUnhealthyMachineConditions>>unhealthyMachineConditions contains a list of the machine conditions that determine whether a machine is considered unhealthy. The conditions are combined in a logical OR, i.e. if any of the conditions is met, the machine is unhealthy.
unhealthy_node_conditions: Option<Vec<MachineHealthCheckChecksUnhealthyNodeConditions>>unhealthyNodeConditions contains a list of 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.
Trait Implementations§
Source§impl Clone for MachineHealthCheckChecks
impl Clone for MachineHealthCheckChecks
Source§fn clone(&self) -> MachineHealthCheckChecks
fn clone(&self) -> MachineHealthCheckChecks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MachineHealthCheckChecks
impl Debug for MachineHealthCheckChecks
Source§impl Default for MachineHealthCheckChecks
impl Default for MachineHealthCheckChecks
Source§fn default() -> MachineHealthCheckChecks
fn default() -> MachineHealthCheckChecks
Source§impl<'de> Deserialize<'de> for MachineHealthCheckChecks
impl<'de> Deserialize<'de> for MachineHealthCheckChecks
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 MachineHealthCheckChecks
impl JsonSchema for MachineHealthCheckChecks
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 MachineHealthCheckChecks
impl PartialEq for MachineHealthCheckChecks
Source§impl Serialize for MachineHealthCheckChecks
impl Serialize for MachineHealthCheckChecks
impl StructuralPartialEq for MachineHealthCheckChecks
Auto Trait Implementations§
impl Freeze for MachineHealthCheckChecks
impl RefUnwindSafe for MachineHealthCheckChecks
impl Send for MachineHealthCheckChecks
impl Sync for MachineHealthCheckChecks
impl Unpin for MachineHealthCheckChecks
impl UnwindSafe for MachineHealthCheckChecks
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