class KubernetesVersion
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.KubernetesVersion |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseks#KubernetesVersion |
Java | software.amazon.awscdk.services.eks.KubernetesVersion |
Python | aws_cdk.aws_eks.KubernetesVersion |
TypeScript (source) | aws-cdk-lib » aws_eks » KubernetesVersion |
Kubernetes cluster version.
Example
new eks.Cluster(this, 'MyCluster', {
kubectlMemory: Size.gibibytes(4),
version: eks.KubernetesVersion.V1_31,
});
// or
declare const vpc: ec2.Vpc;
eks.Cluster.fromClusterAttributes(this, 'MyCluster', {
kubectlMemory: Size.gibibytes(4),
vpc,
clusterName: 'cluster-name',
});
Properties
Name | Type | Description |
---|---|---|
version | string | cluster version number. |
static V1_14 | Kubernetes | Kubernetes version 1.14. |
static V1_15 | Kubernetes | Kubernetes version 1.15. |
static V1_16 | Kubernetes | Kubernetes version 1.16. |
static V1_17 | Kubernetes | Kubernetes version 1.17. |
static V1_18 | Kubernetes | Kubernetes version 1.18. |
static V1_19 | Kubernetes | Kubernetes version 1.19. |
static V1_20 | Kubernetes | Kubernetes version 1.20. |
static V1_21 | Kubernetes | Kubernetes version 1.21. |
static V1_22 | Kubernetes | Kubernetes version 1.22. |
static V1_23 | Kubernetes | Kubernetes version 1.23. |
static V1_24 | Kubernetes | Kubernetes version 1.24. |
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. |
version
Type:
string
cluster version number.
static V1_14
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.14.
static V1_15
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.15.
static V1_16
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.16.
static V1_17
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.17.
static V1_18
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.18.
static V1_19
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.19.
static V1_20
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.20.
static V1_21
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.21.
static V1_22
⚠️ Deprecated: Use newer version of EKS
Type:
Kubernetes
Kubernetes version 1.22.
static V1_23
Type:
Kubernetes
Kubernetes version 1.23.
When creating a Cluster
with this version, you need to also specify the
kubectlLayer
property with a KubectlV23Layer
from
@aws-cdk/lambda-layer-kubectl-v23
.
static V1_24
Type:
Kubernetes
Kubernetes version 1.24.
When creating a Cluster
with this version, you need to also specify the
kubectlLayer
property with a KubectlV24Layer
from
@aws-cdk/lambda-layer-kubectl-v24
.
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
.
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.