Skip to content
v2.274.0

CapacityType Enum ​

Capacity type of the managed node group.

Example ​

ts
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 ​

MemberDescription
SPOTspot instances.
ON_DEMANDon-demand instances.
CAPACITY_BLOCKcapacity block instances.

Referenced by ​