enum CapacityType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.CapacityType |
Java | software.amazon.awscdk.services.eks.CapacityType |
Python | aws_cdk.aws_eks.CapacityType |
TypeScript (source) | @aws-cdk/aws-eks » CapacityType |
Capacity type of the managed node group.
Example
declare const cluster: eks.Cluster;
cluster.addNodegroupCapacity('extra-ng-spot', {
instanceTypes: [
new ec2.InstanceType('c5.large'),
new ec2.InstanceType('c5a.large'),
new ec2.InstanceType('c5d.large'),
],
minSize: 3,
capacityType: eks.CapacityType.SPOT,
});
Members
Name | Description |
---|---|
SPOT | spot instances. |
ON_DEMAND | on-demand instances. |
SPOT
spot instances.
ON_DEMAND
on-demand instances.