Class: AWSCDK::EKS::CfnNodegroup::NodeRepairConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_nodegroup.rb

Overview

The node auto repair configuration for the node group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, max_parallel_nodes_repaired_count: nil, max_parallel_nodes_repaired_percentage: nil, max_unhealthy_node_threshold_count: nil, max_unhealthy_node_threshold_percentage: nil, node_repair_config_overrides: nil) ⇒ NodeRepairConfigProperty

Returns a new instance of NodeRepairConfigProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether to enable node auto repair for the node group.

  • max_parallel_nodes_repaired_count (Numeric, nil) (defaults to: nil)

    Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a count of unhealthy nodes.

  • max_parallel_nodes_repaired_percentage (Numeric, nil) (defaults to: nil)

    Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a percentage of unhealthy nodes.

  • max_unhealthy_node_threshold_count (Numeric, nil) (defaults to: nil)

    Specify a count threshold of unhealthy nodes, above which node auto repair actions will stop.

  • max_unhealthy_node_threshold_percentage (Numeric, nil) (defaults to: nil)

    Specify a percentage threshold of unhealthy nodes, above which node auto repair actions will stop.

  • node_repair_config_overrides (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::EKS::CfnNodegroup::NodeRepairConfigOverridesProperty>, nil) (defaults to: nil)

    Specify granular overrides for specific repair actions.



932
933
934
935
936
937
938
939
940
941
942
943
944
945
# File 'eks/cfn_nodegroup.rb', line 932

def initialize(enabled: nil, max_parallel_nodes_repaired_count: nil, max_parallel_nodes_repaired_percentage: nil, max_unhealthy_node_threshold_count: nil, max_unhealthy_node_threshold_percentage: nil, node_repair_config_overrides: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @max_parallel_nodes_repaired_count = max_parallel_nodes_repaired_count
  Jsii::Type.check_type(@max_parallel_nodes_repaired_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxParallelNodesRepairedCount") unless @max_parallel_nodes_repaired_count.nil?
  @max_parallel_nodes_repaired_percentage = max_parallel_nodes_repaired_percentage
  Jsii::Type.check_type(@max_parallel_nodes_repaired_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxParallelNodesRepairedPercentage") unless @max_parallel_nodes_repaired_percentage.nil?
  @max_unhealthy_node_threshold_count = max_unhealthy_node_threshold_count
  Jsii::Type.check_type(@max_unhealthy_node_threshold_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxUnhealthyNodeThresholdCount") unless @max_unhealthy_node_threshold_count.nil?
  @max_unhealthy_node_threshold_percentage = max_unhealthy_node_threshold_percentage
  Jsii::Type.check_type(@max_unhealthy_node_threshold_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxUnhealthyNodeThresholdPercentage") unless @max_unhealthy_node_threshold_percentage.nil?
  @node_repair_config_overrides = node_repair_config_overrides
  Jsii::Type.check_type(@node_repair_config_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLkNmbk5vZGVncm91cC5Ob2RlUmVwYWlyQ29uZmlnT3ZlcnJpZGVzUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "nodeRepairConfigOverrides") unless @node_repair_config_overrides.nil?
end

Instance Attribute Details

#enabledBoolean, ... (readonly)

Specifies whether to enable node auto repair for the node group.

Node auto repair is disabled by default.



953
954
955
# File 'eks/cfn_nodegroup.rb', line 953

def enabled
  @enabled
end

#max_parallel_nodes_repaired_countNumeric? (readonly)

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 max_parallel_nodes_repaired_percentage at the same time.



960
961
962
# File 'eks/cfn_nodegroup.rb', line 960

def max_parallel_nodes_repaired_count
  @max_parallel_nodes_repaired_count
end

#max_parallel_nodes_repaired_percentageNumeric? (readonly)

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 max_parallel_nodes_repaired_count at the same time.



967
968
969
# File 'eks/cfn_nodegroup.rb', line 967

def max_parallel_nodes_repaired_percentage
  @max_parallel_nodes_repaired_percentage
end

#max_unhealthy_node_threshold_countNumeric? (readonly)

Specify a count threshold of unhealthy nodes, above which node auto repair actions will stop.

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



974
975
976
# File 'eks/cfn_nodegroup.rb', line 974

def max_unhealthy_node_threshold_count
  @max_unhealthy_node_threshold_count
end

#max_unhealthy_node_threshold_percentageNumeric? (readonly)

Specify a percentage threshold of unhealthy nodes, above which node auto repair actions will stop.

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



981
982
983
# File 'eks/cfn_nodegroup.rb', line 981

def max_unhealthy_node_threshold_percentage
  @max_unhealthy_node_threshold_percentage
end

#node_repair_config_overridesAWSCDK::IResolvable, ... (readonly)

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.



988
989
990
# File 'eks/cfn_nodegroup.rb', line 988

def node_repair_config_overrides
  @node_repair_config_overrides
end

Class Method Details

.jsii_propertiesObject



990
991
992
993
994
995
996
997
998
999
# File 'eks/cfn_nodegroup.rb', line 990

def self.jsii_properties
  {
    :enabled => "enabled",
    :max_parallel_nodes_repaired_count => "maxParallelNodesRepairedCount",
    :max_parallel_nodes_repaired_percentage => "maxParallelNodesRepairedPercentage",
    :max_unhealthy_node_threshold_count => "maxUnhealthyNodeThresholdCount",
    :max_unhealthy_node_threshold_percentage => "maxUnhealthyNodeThresholdPercentage",
    :node_repair_config_overrides => "nodeRepairConfigOverrides",
  }
end

Instance Method Details

#to_jsiiObject



1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'eks/cfn_nodegroup.rb', line 1001

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "maxParallelNodesRepairedCount" => @max_parallel_nodes_repaired_count,
    "maxParallelNodesRepairedPercentage" => @max_parallel_nodes_repaired_percentage,
    "maxUnhealthyNodeThresholdCount" => @max_unhealthy_node_threshold_count,
    "maxUnhealthyNodeThresholdPercentage" => @max_unhealthy_node_threshold_percentage,
    "nodeRepairConfigOverrides" => @node_repair_config_overrides,
  })
  result.compact
end