NodeRepairConfigProperty Struct
The node auto repair configuration for the node group.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const nodeRepairConfigProperty: eks.CfnNodegroup.NodeRepairConfigProperty = {
enabled: false,
maxParallelNodesRepairedCount: 123,
maxParallelNodesRepairedPercentage: 123,
maxUnhealthyNodeThresholdCount: 123,
maxUnhealthyNodeThresholdPercentage: 123,
nodeRepairConfigOverrides: [{
minRepairWaitTimeMins: 123,
nodeMonitoringCondition: 'nodeMonitoringCondition',
nodeUnhealthyReason: 'nodeUnhealthyReason',
repairAction: 'repairAction',
}],
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks
node_repair_config_property = eks.CfnNodegroup.NodeRepairConfigProperty(
enabled=False,
max_parallel_nodes_repaired_count=123,
max_parallel_nodes_repaired_percentage=123,
max_unhealthy_node_threshold_count=123,
max_unhealthy_node_threshold_percentage=123,
node_repair_config_overrides=[eks.CfnNodegroup.NodeRepairConfigOverridesProperty(
min_repair_wait_time_mins=123,
node_monitoring_condition="nodeMonitoringCondition",
node_unhealthy_reason="nodeUnhealthyReason",
repair_action="repairAction"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;
NodeRepairConfigProperty nodeRepairConfigProperty = NodeRepairConfigProperty.builder()
.enabled(false)
.maxParallelNodesRepairedCount(123)
.maxParallelNodesRepairedPercentage(123)
.maxUnhealthyNodeThresholdCount(123)
.maxUnhealthyNodeThresholdPercentage(123)
.nodeRepairConfigOverrides(List.of(NodeRepairConfigOverridesProperty.builder()
.minRepairWaitTimeMins(123)
.nodeMonitoringCondition("nodeMonitoringCondition")
.nodeUnhealthyReason("nodeUnhealthyReason")
.repairAction("repairAction")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;
var nodeRepairConfigProperty = new NodeRepairConfigProperty {
Enabled = false,
MaxParallelNodesRepairedCount = 123,
MaxParallelNodesRepairedPercentage = 123,
MaxUnhealthyNodeThresholdCount = 123,
MaxUnhealthyNodeThresholdPercentage = 123,
NodeRepairConfigOverrides = new [] { new NodeRepairConfigOverridesProperty {
MinRepairWaitTimeMins = 123,
NodeMonitoringCondition = "nodeMonitoringCondition",
NodeUnhealthyReason = "nodeUnhealthyReason",
RepairAction = "repairAction"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
nodeRepairConfigProperty := &NodeRepairConfigProperty{
Enabled: jsii.Boolean(false),
MaxParallelNodesRepairedCount: jsii.Number(123),
MaxParallelNodesRepairedPercentage: jsii.Number(123),
MaxUnhealthyNodeThresholdCount: jsii.Number(123),
MaxUnhealthyNodeThresholdPercentage: jsii.Number(123),
NodeRepairConfigOverrides: []interface{}{
&NodeRepairConfigOverridesProperty{
MinRepairWaitTimeMins: jsii.Number(123),
NodeMonitoringCondition: jsii.String("nodeMonitoringCondition"),
NodeUnhealthyReason: jsii.String("nodeUnhealthyReason"),
RepairAction: jsii.String("repairAction"),
},
},
}
Properties
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #Node auto repair is disabled by default.
maxParallelNodesRepairedCountoptionalnumbermax_parallel_nodes_repaired_countoptionalint | floatmaxParallelNodesRepairedCountoptionalNumberMaxParallelNodesRepairedCountoptionaldoubleMaxParallelNodesRepairedCountoptional*float64 #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 #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 #When using this, you cannot also set maxUnhealthyNodeThresholdPercentage at the same time.
maxUnhealthyNodeThresholdPercentageoptionalnumbermax_unhealthy_node_threshold_percentageoptionalint | floatmaxUnhealthyNodeThresholdPercentageoptionalNumberMaxUnhealthyNodeThresholdPercentageoptionaldoubleMaxUnhealthyNodeThresholdPercentageoptional*float64 #When using this, you cannot also set maxUnhealthyNodeThresholdCount at the same time.
nodeRepairConfigOverridesoptionalIResolvable | IResolvable | CfnNodegroup.node_repair_config_overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NodeRepairConfigOverridesProperty]]]nodeRepairConfigOverridesoptionalIResolvableNodeRepairConfigOverridesoptionalIResolvableNodeRepairConfigOverridesoptionalinterface{} #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.