pub struct ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks {
pub node_startup_timeout_seconds: Option<i32>,
pub unhealthy_machine_conditions: Option<Vec<ClusterTopologyWorkersMachineDeploymentsHealthCheckChecksUnhealthyMachineConditions>>,
pub unhealthy_node_conditions: Option<Vec<ClusterTopologyWorkersMachineDeploymentsHealthCheckChecksUnhealthyNodeConditions>>,
}Expand description
checks are the checks that are used to evaluate if a Machine is healthy.
If one of checks and remediation fields are set, the system assumes that an healthCheck override is defined, and as a consequence the checks and remediation fields from Cluster will be used instead of the corresponding fields in ClusterClass.
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<ClusterTopologyWorkersMachineDeploymentsHealthCheckChecksUnhealthyMachineConditions>>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<ClusterTopologyWorkersMachineDeploymentsHealthCheckChecksUnhealthyNodeConditions>>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 ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl Clone for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
Source§fn clone(&self) -> ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
fn clone(&self) -> ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl Default for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
Source§fn default() -> ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
fn default() -> ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
Source§impl<'de> Deserialize<'de> for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl<'de> Deserialize<'de> for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
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 ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl JsonSchema for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
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 ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl PartialEq for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
Source§fn eq(
&self,
other: &ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks,
) -> bool
fn eq( &self, other: &ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks, ) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
Auto Trait Implementations§
impl Freeze for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl RefUnwindSafe for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl Send for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl Sync for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl Unpin for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl UnsafeUnpin for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
impl UnwindSafe for ClusterTopologyWorkersMachineDeploymentsHealthCheckChecks
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