Skip to content
v2.275.0

NodeRepairConfigProperty Struct ​

The node auto repair configuration for the node group.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks_v2 as eks_v2 } from 'aws-cdk-lib';
const nodeRepairConfigProperty: eks_v2.CfnNodegroup.NodeRepairConfigProperty = {
  enabled: false,
  maxParallelNodesRepairedCount: 123,
  maxParallelNodesRepairedPercentage: 123,
  maxUnhealthyNodeThresholdCount: 123,
  maxUnhealthyNodeThresholdPercentage: 123,
  nodeRepairConfigOverrides: [{
    minRepairWaitTimeMins: 123,
    nodeMonitoringCondition: 'nodeMonitoringCondition',
    nodeUnhealthyReason: 'nodeUnhealthyReason',
    repairAction: 'repairAction',
  }],
};

Properties ​

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{}#
Specifies whether to enable node auto repair for the node group.

Node auto repair is disabled by default.

maxParallelNodesRepairedCountoptionalnumbermax_parallel_nodes_repaired_countoptionalint | floatmaxParallelNodesRepairedCountoptionalNumberMaxParallelNodesRepairedCountoptionaldoubleMaxParallelNodesRepairedCountoptional*float64#
Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a count of unhealthy nodes.

This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set maxParallelNodesRepairedPercentage at the same time.

maxParallelNodesRepairedPercentageoptionalnumbermax_parallel_nodes_repaired_percentageoptionalint | floatmaxParallelNodesRepairedPercentageoptionalNumberMaxParallelNodesRepairedPercentageoptionaldoubleMaxParallelNodesRepairedPercentageoptional*float64#
Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a percentage of unhealthy nodes.

This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set maxParallelNodesRepairedCount at the same time.

maxUnhealthyNodeThresholdCountoptionalnumbermax_unhealthy_node_threshold_countoptionalint | floatmaxUnhealthyNodeThresholdCountoptionalNumberMaxUnhealthyNodeThresholdCountoptionaldoubleMaxUnhealthyNodeThresholdCountoptional*float64#
Specify a count threshold of unhealthy nodes, above which node auto repair actions will stop.

When using this, you cannot also set maxUnhealthyNodeThresholdPercentage at the same time.

maxUnhealthyNodeThresholdPercentageoptionalnumbermax_unhealthy_node_threshold_percentageoptionalint | floatmaxUnhealthyNodeThresholdPercentageoptionalNumberMaxUnhealthyNodeThresholdPercentageoptionaldoubleMaxUnhealthyNodeThresholdPercentageoptional*float64#
Specify a percentage threshold of unhealthy nodes, above which node auto repair actions will stop.

When using this, you cannot also set maxUnhealthyNodeThresholdCount at the same time.

nodeRepairConfigOverridesoptionalIResolvable | IResolvable | CfnNodegroup.NodeRepairConfigOverridesProperty[]node_repair_config_overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NodeRepairConfigOverridesProperty]]]nodeRepairConfigOverridesoptionalIResolvableNodeRepairConfigOverridesoptionalIResolvableNodeRepairConfigOverridesoptionalinterface{}#
Specify granular overrides for specific repair actions.

These overrides control the repair action and the repair delay time before a node is considered eligible for repair. If you use this, you must specify all the values.