TaintEffect

class aws_cdk.aws_eks.TaintEffect(value)

Bases: Enum

Effect types of kubernetes node taint.

ExampleMetadata:

infused

Example:

# cluster: eks.Cluster

cluster.add_nodegroup_capacity("custom-node-group",
    instance_types=[ec2.InstanceType("m5.large")],
    taints=[eks.TaintSpec(
        effect=eks.TaintEffect.NO_SCHEDULE,
        key="foo",
        value="bar"
    )
    ]
)

Attributes

NO_EXECUTE

NoExecute.

NO_SCHEDULE

NoSchedule.

PREFER_NO_SCHEDULE

PreferNoSchedule.