Show / Hide Table of Contents

Enum TaintEffect

Effect types of kubernetes node taint.

Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum TaintEffect
Syntax (vb)
Public Enum TaintEffect
Remarks

Note: These values are specifically for AWS EKS NodeGroups and use the AWS API format. When using AWS CLI or API, taint effects must be NO_SCHEDULE, PREFER_NO_SCHEDULE, or NO_EXECUTE. When using Kubernetes directly or kubectl, taint effects must be NoSchedule, PreferNoSchedule, or NoExecute.

For Kubernetes manifests (like Karpenter NodePools), use string literals with PascalCase format:

    See: https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html

    ExampleMetadata: infused

    Examples
    Cluster cluster;
    
                 cluster.AddNodegroupCapacity("custom-node-group", new NodegroupOptions {
                     InstanceTypes = new [] { new InstanceType("m5.large") },
                     Taints = new [] { new TaintSpec {
                         Effect = TaintEffect.NO_SCHEDULE,
                         Key = "foo",
                         Value = "bar"
                     } }
                 });

    Synopsis

    Fields

    NO_EXECUTE

    NoExecute.

    NO_SCHEDULE

    NoSchedule.

    PREFER_NO_SCHEDULE

    PreferNoSchedule.

    Fields

    Name Description
    NO_EXECUTE

    NoExecute.

    NO_SCHEDULE

    NoSchedule.

    PREFER_NO_SCHEDULE

    PreferNoSchedule.

    Back to top Generated by DocFX