class KubernetesVersion
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Eks.V2.Alpha.KubernetesVersion |
![]() | github.com/aws/aws-cdk-go/awscdkeks-v2alpha/v2#KubernetesVersion |
![]() | software.amazon.awscdk.services.eks.v2.alpha.KubernetesVersion |
![]() | aws_cdk.aws_eks_v2_alpha.KubernetesVersion |
![]() | @aws-cdk/aws-eks-v2-alpha ยป KubernetesVersion |
Kubernetes cluster version.
Example
const cluster = new eks.Cluster(this, 'EksAutoCluster', {
version: eks.KubernetesVersion.V1_32,
defaultCapacityType: eks.DefaultCapacityType.AUTOMODE,
compute: {
nodePools: ['system', 'general-purpose'],
},
});
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. |
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
.
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.