Interface IClusterProps
Common configuration props for EKS clusters.
Inherited Members
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IClusterProps : IClusterOptions, ICommonClusterOptions
Syntax (vb)
Public Interface IClusterProps
Inherits IClusterOptions, ICommonClusterOptions
Remarks
ExampleMetadata: infused
Examples
// or
Vpc vpc;
new Cluster(this, "MyCluster", new ClusterProps {
KubectlMemory = Size.Gibibytes(4),
Version = KubernetesVersion.V1_29
});
Cluster.FromClusterAttributes(this, "MyCluster", new ClusterAttributes {
KubectlMemory = Size.Gibibytes(4),
Vpc = vpc,
ClusterName = "cluster-name"
});
Synopsis
Properties
DefaultCapacity | Number of instances to allocate as an initial capacity for this cluster. |
DefaultCapacityInstance | The instance type to use for the default capacity. |
DefaultCapacityType | The default capacity type for the cluster. |
KubectlLambdaRole | The IAM role to pass to the Kubectl Lambda Handler. |
Tags | The tags assigned to the EKS cluster. |
Properties
DefaultCapacity
Number of instances to allocate as an initial capacity for this cluster.
virtual Nullable<double> DefaultCapacity { get; }
Property Value
System.Nullable<System.Double>
Remarks
Instance type can be configured through defaultCapacityInstanceType
,
which defaults to m5.large
.
Use cluster.addAutoScalingGroupCapacity
to add additional customized capacity. Set this
to 0
is you wish to avoid the initial capacity allocation.
Default: 2
DefaultCapacityInstance
The instance type to use for the default capacity.
virtual InstanceType DefaultCapacityInstance { get; }
Property Value
Remarks
This will only be taken
into account if defaultCapacity
is > 0.
Default: m5.large
DefaultCapacityType
The default capacity type for the cluster.
virtual Nullable<DefaultCapacityType> DefaultCapacityType { get; }
Property Value
System.Nullable<DefaultCapacityType>
Remarks
Default: NODEGROUP
KubectlLambdaRole
The IAM role to pass to the Kubectl Lambda Handler.
virtual IRole KubectlLambdaRole { get; }
Property Value
Remarks
Default: - Default Lambda IAM Execution Role
Tags
The tags assigned to the EKS cluster.
virtual IDictionary<string, string> Tags { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - none