Skip to content

Commit e724385

Browse files
authored
chore(eks): deprecate k8s 1.21 and 1.22 (#25575)
``` Hello, Amazon EKS has deprecated Kubernetes version 1.22 and this version will no longer be supported on June 4, 2023. Starting that day, you will no longer be able to create new 1.22 clusters, and all EKS clusters running Kubernetes version 1.22 will be updated to the latest available platform version of Kubernetes version 1.23. You are receiving this message because you currently have 1 or more EKS cluster(s) running with Kubernetes version 1.22, listed as follows: arn:aws:eks:us-east-1:123456789012:cluster/dev-clsuter We recommend that you update your 1.22 clusters to Kubernetes version 1.23 or higher. You can minimize the frequency at which you need to perform version upgrades by updating your cluster up to the latest supported Kubernetes version, which is version 1.26. To learn more on Kubernetes version support, see the Amazon EKS service documentation on Amazon EKS Kubernetes versions [1]. For instructions on how to update your cluster(s), see the Amazon EKS service documentation on Updating an Amazon EKS cluster Kubernetes version [2]. If you have questions or concerns, please reach out to AWS Support [3]. Sincerely, Amazon Web Services ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent d43834d commit e724385

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/aws-cdk-lib/aws-eks/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ The following code defines an Amazon EKS cluster with a default Fargate Profile
339339

340340
```ts
341341
const cluster = new eks.FargateCluster(this, 'MyCluster', {
342-
version: eks.KubernetesVersion.V1_21,
342+
version: eks.KubernetesVersion.V1_26,
343343
});
344344
```
345345

@@ -416,7 +416,7 @@ You can also configure the cluster to use an auto-scaling group as the default c
416416

417417
```ts
418418
const cluster = new eks.Cluster(this, 'HelloEKS', {
419-
version: eks.KubernetesVersion.V1_21,
419+
version: eks.KubernetesVersion.V1_26,
420420
defaultCapacityType: eks.DefaultCapacityType.EC2,
421421
});
422422
```
@@ -509,7 +509,7 @@ You can configure the [cluster endpoint access](https://docs.aws.amazon.com/eks/
509509

510510
```ts
511511
const cluster = new eks.Cluster(this, 'hello-eks', {
512-
version: eks.KubernetesVersion.V1_21,
512+
version: eks.KubernetesVersion.V1_26,
513513
endpointAccess: eks.EndpointAccess.PRIVATE, // No access outside of your VPC.
514514
});
515515
```
@@ -672,8 +672,8 @@ the `@aws-cdk/lambda-layer-awscli` and `@aws-cdk/lambda-layer-kubectl` modules.
672672
The version of kubectl used must be compatible with the Kubernetes version of the
673673
cluster. kubectl is supported within one minor version (older or newer) of Kubernetes
674674
(see [Kubernetes version skew policy](https://kubernetes.io/releases/version-skew-policy/#kubectl)).
675-
Only version 1.20 of kubectl is available in `aws-cdk-lib`. If you need a different
676-
version, you will need to use one of the `@aws-cdk/lambda-layer-kubectl-vXY` packages.
675+
Depending on which version of kubernetes you're targeting, you will need to use one of
676+
the `@aws-cdk/lambda-layer-kubectl-vXY` packages.
677677

678678
```ts
679679
import { KubectlV26Layer } from '@aws-cdk/lambda-layer-kubectl-v26';

packages/aws-cdk-lib/aws-eks/lib/cluster.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,13 @@ export class KubernetesVersion {
845845

846846
/**
847847
* Kubernetes version 1.21
848+
* @deprecated Use newer version of EKS
848849
*/
849850
public static readonly V1_21 = KubernetesVersion.of('1.21');
850851

851852
/**
852853
* Kubernetes version 1.22
854+
* @deprecated Use newer version of EKS
853855
*
854856
* When creating a `Cluster` with this version, you need to also specify the
855857
* `kubectlLayer` property with a `KubectlV22Layer` from

0 commit comments

Comments
 (0)