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
| Member | Description |
|---|---|
SPOT | spot instances. |
ON_DEMAND | on-demand instances. |
CAPACITY_BLOCK | capacity block instances. |
Referenced by
NodegroupOptions.capacityTypecapacity_typecapacityTypeCapacityTypeCapacityType