amazonka-eks-2.0: Amazon Elastic Kubernetes Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EKS.Types.NodegroupScalingConfig

Description

 
Synopsis

Documentation

data NodegroupScalingConfig Source #

An object representing the scaling configuration details for the Auto Scaling group that is associated with your node group. When creating a node group, you must specify all or none of the properties. When updating a node group, you can specify any or none of the properties.

See: newNodegroupScalingConfig smart constructor.

Constructors

NodegroupScalingConfig' 

Fields

  • desiredSize :: Maybe Natural

    The current number of nodes that the managed node group should maintain.

    If you use Cluster Autoscaler, you shouldn't change the desiredSize value directly, as this can cause the Cluster Autoscaler to suddenly scale up or scale down.

    Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.

    This parameter can be different from minSize in some cases, such as when starting with extra hosts for testing. This parameter can also be different when you want to start with an estimated number of needed hosts, but let Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.

  • maxSize :: Maybe Natural

    The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.

  • minSize :: Maybe Natural

    The minimum number of nodes that the managed node group can scale in to.

Instances

Instances details
FromJSON NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

ToJSON NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

Generic NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

Associated Types

type Rep NodegroupScalingConfig :: Type -> Type #

Read NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

Show NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

NFData NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

Methods

rnf :: NodegroupScalingConfig -> () #

Eq NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

Hashable NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

type Rep NodegroupScalingConfig Source # 
Instance details

Defined in Amazonka.EKS.Types.NodegroupScalingConfig

type Rep NodegroupScalingConfig = D1 ('MetaData "NodegroupScalingConfig" "Amazonka.EKS.Types.NodegroupScalingConfig" "amazonka-eks-2.0-7cAibD4zEbE2zPO6gnUh5m" 'False) (C1 ('MetaCons "NodegroupScalingConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "desiredSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "maxSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "minSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))

newNodegroupScalingConfig :: NodegroupScalingConfig Source #

Create a value of NodegroupScalingConfig with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:desiredSize:NodegroupScalingConfig', nodegroupScalingConfig_desiredSize - The current number of nodes that the managed node group should maintain.

If you use Cluster Autoscaler, you shouldn't change the desiredSize value directly, as this can cause the Cluster Autoscaler to suddenly scale up or scale down.

Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.

This parameter can be different from minSize in some cases, such as when starting with extra hosts for testing. This parameter can also be different when you want to start with an estimated number of needed hosts, but let Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.

$sel:maxSize:NodegroupScalingConfig', nodegroupScalingConfig_maxSize - The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.

$sel:minSize:NodegroupScalingConfig', nodegroupScalingConfig_minSize - The minimum number of nodes that the managed node group can scale in to.

nodegroupScalingConfig_desiredSize :: Lens' NodegroupScalingConfig (Maybe Natural) Source #

The current number of nodes that the managed node group should maintain.

If you use Cluster Autoscaler, you shouldn't change the desiredSize value directly, as this can cause the Cluster Autoscaler to suddenly scale up or scale down.

Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.

This parameter can be different from minSize in some cases, such as when starting with extra hosts for testing. This parameter can also be different when you want to start with an estimated number of needed hosts, but let Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.

nodegroupScalingConfig_maxSize :: Lens' NodegroupScalingConfig (Maybe Natural) Source #

The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.

nodegroupScalingConfig_minSize :: Lens' NodegroupScalingConfig (Maybe Natural) Source #

The minimum number of nodes that the managed node group can scale in to.