class KubernetesVersion
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Eks.V2.Alpha.KubernetesVersion |
Go | github.com/aws/aws-cdk-go/awscdkeksv2alpha/v2#KubernetesVersion |
Java | software.amazon.awscdk.services.eks.v2.alpha.KubernetesVersion |
Python | aws_cdk.aws_eks_v2_alpha.KubernetesVersion |
TypeScript (source) | @aws-cdk/aws-eks-v2-alpha ยป KubernetesVersion |
Kubernetes cluster version.
Example
const cluster = new eks.Cluster(this, 'ManagedNodeCluster', {
version: eks.KubernetesVersion.V1_34,
defaultCapacityType: eks.DefaultCapacityType.NODEGROUP,
});
// Add a Fargate Profile for specific workloads (e.g., default namespace)
cluster.addFargateProfile('FargateProfile', {
selectors: [
{ namespace: 'default' }, // Run pods in 'default' on Fargate
],
});
Properties
| Name | Type | Description |
|---|---|---|
| version | string | cluster version number. |
| static V1_25 | Kubernetes | Kubernetes version 1.25. |
| static V1_26 | Kubernetes | Kubernetes version 1.26. |
| static V1_27 | Kubernetes | Kubernetes version 1.27. |
| static V1_28 | Kubernetes | Kubernetes version 1.28. |
| static V1_29 | Kubernetes | Kubernetes version 1.29. |
| static V1_30 | Kubernetes | Kubernetes version 1.30. |
| static V1_31 | Kubernetes | Kubernetes version 1.31. |
| static V1_32 | Kubernetes | Kubernetes version 1.32. |
| static V1_33 | Kubernetes | Kubernetes version 1.33. |
| static V1_34 | Kubernetes | Kubernetes version 1.34. |
version
Type:
string
cluster version number.
static V1_25
Type:
Kubernetes
Kubernetes version 1.25.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV25Layer from
@aws-cdk/lambda-layer-kubectl-v25.
static V1_26
Type:
Kubernetes
Kubernetes version 1.26.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV26Layer from
@aws-cdk/lambda-layer-kubectl-v26.
static V1_27
Type:
Kubernetes
Kubernetes version 1.27.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV27Layer from
@aws-cdk/lambda-layer-kubectl-v27.
static V1_28
Type:
Kubernetes
Kubernetes version 1.28.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV28Layer from
@aws-cdk/lambda-layer-kubectl-v28.
static V1_29
Type:
Kubernetes
Kubernetes version 1.29.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV29Layer from
@aws-cdk/lambda-layer-kubectl-v29.
static V1_30
Type:
Kubernetes
Kubernetes version 1.30.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV30Layer from
@aws-cdk/lambda-layer-kubectl-v30.
static V1_31
Type:
Kubernetes
Kubernetes version 1.31.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV31Layer from
@aws-cdk/lambda-layer-kubectl-v31.
static V1_32
Type:
Kubernetes
Kubernetes version 1.32.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV32Layer from
@aws-cdk/lambda-layer-kubectl-v32.
static V1_33
Type:
Kubernetes
Kubernetes version 1.33.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV33Layer from
@aws-cdk/lambda-layer-kubectl-v33.
static V1_34
Type:
Kubernetes
Kubernetes version 1.34.
When creating a Cluster with this version, you need to also specify the
kubectlLayer property with a KubectlV34Layer from
@aws-cdk/lambda-layer-kubectl-v34.
Methods
| Name | Description |
|---|---|
| static of(version) | Custom cluster version. |
static of(version)
public static of(version: string): KubernetesVersion
Parameters
- version
stringโ custom version number.
Returns
Custom cluster version.

.NET
Go
Java
Python
TypeScript (