@@ -50,7 +50,7 @@ This example defines an Amazon EKS cluster with the following configuration:
50
50
``` ts
51
51
// provisiong a cluster
52
52
const cluster = new eks .Cluster (this , ' hello-eks' , {
53
- version: eks .KubernetesVersion .V1_21 ,
53
+ version: eks .KubernetesVersion .V1_22 ,
54
54
});
55
55
56
56
// apply a kubernetes manifest to the cluster
@@ -143,15 +143,15 @@ Creating a new cluster is done using the `Cluster` or `FargateCluster` construct
143
143
144
144
``` ts
145
145
new eks .Cluster (this , ' HelloEKS' , {
146
- version: eks .KubernetesVersion .V1_21 ,
146
+ version: eks .KubernetesVersion .V1_22 ,
147
147
});
148
148
```
149
149
150
150
You can also use ` FargateCluster ` to provision a cluster that uses only fargate workers.
151
151
152
152
``` ts
153
153
new eks .FargateCluster (this , ' HelloEKS' , {
154
- version: eks .KubernetesVersion .V1_21 ,
154
+ version: eks .KubernetesVersion .V1_22 ,
155
155
});
156
156
```
157
157
@@ -175,7 +175,7 @@ At cluster instantiation time, you can customize the number of instances and the
175
175
176
176
``` ts
177
177
new eks .Cluster (this , ' HelloEKS' , {
178
- version: eks .KubernetesVersion .V1_21 ,
178
+ version: eks .KubernetesVersion .V1_22 ,
179
179
defaultCapacity: 5 ,
180
180
defaultCapacityInstance: ec2 .InstanceType .of (ec2 .InstanceClass .M5 , ec2 .InstanceSize .SMALL ),
181
181
});
@@ -187,7 +187,7 @@ Additional customizations are available post instantiation. To apply them, set t
187
187
188
188
``` ts
189
189
const cluster = new eks .Cluster (this , ' HelloEKS' , {
190
- version: eks .KubernetesVersion .V1_21 ,
190
+ version: eks .KubernetesVersion .V1_22 ,
191
191
defaultCapacity: 0 ,
192
192
});
193
193
@@ -345,7 +345,7 @@ The following code defines an Amazon EKS cluster with a default Fargate Profile
345
345
346
346
``` ts
347
347
const cluster = new eks .FargateCluster (this , ' MyCluster' , {
348
- version: eks .KubernetesVersion .V1_21 ,
348
+ version: eks .KubernetesVersion .V1_22 ,
349
349
});
350
350
```
351
351
@@ -422,7 +422,7 @@ You can also configure the cluster to use an auto-scaling group as the default c
422
422
423
423
``` ts
424
424
const cluster = new eks .Cluster (this , ' HelloEKS' , {
425
- version: eks .KubernetesVersion .V1_21 ,
425
+ version: eks .KubernetesVersion .V1_22 ,
426
426
defaultCapacityType: eks .DefaultCapacityType .EC2 ,
427
427
});
428
428
```
@@ -515,7 +515,7 @@ You can configure the [cluster endpoint access](https://docs.aws.amazon.com/eks/
515
515
516
516
``` ts
517
517
const cluster = new eks .Cluster (this , ' hello-eks' , {
518
- version: eks .KubernetesVersion .V1_21 ,
518
+ version: eks .KubernetesVersion .V1_22 ,
519
519
endpointAccess: eks .EndpointAccess .PRIVATE , // No access outside of your VPC.
520
520
});
521
521
```
@@ -537,7 +537,7 @@ To deploy the controller on your EKS cluster, configure the `albController` prop
537
537
538
538
``` ts
539
539
new eks .Cluster (this , ' HelloEKS' , {
540
- version: eks .KubernetesVersion .V1_21 ,
540
+ version: eks .KubernetesVersion .V1_22 ,
541
541
albController: {
542
542
version: eks .AlbControllerVersion .V2_4_1 ,
543
543
},
@@ -577,7 +577,7 @@ You can specify the VPC of the cluster using the `vpc` and `vpcSubnets` properti
577
577
declare const vpc: ec2 .Vpc ;
578
578
579
579
new eks .Cluster (this , ' HelloEKS' , {
580
- version: eks .KubernetesVersion .V1_21 ,
580
+ version: eks .KubernetesVersion .V1_22 ,
581
581
vpc ,
582
582
vpcSubnets: [{ subnetType: ec2 .SubnetType .PRIVATE }],
583
583
});
@@ -624,7 +624,7 @@ You can configure the environment of the Cluster Handler functions by specifying
624
624
``` ts
625
625
declare const proxyInstanceSecurityGroup: ec2 .SecurityGroup ;
626
626
const cluster = new eks .Cluster (this , ' hello-eks' , {
627
- version: eks .KubernetesVersion .V1_21 ,
627
+ version: eks .KubernetesVersion .V1_22 ,
628
628
clusterHandlerEnvironment: {
629
629
https_proxy: ' http://proxy.myproxy.com' ,
630
630
},
@@ -662,7 +662,7 @@ You can configure the environment of this function by specifying it at cluster i
662
662
663
663
``` ts
664
664
const cluster = new eks .Cluster (this , ' hello-eks' , {
665
- version: eks .KubernetesVersion .V1_21 ,
665
+ version: eks .KubernetesVersion .V1_22 ,
666
666
kubectlEnvironment: {
667
667
' http_proxy' : ' http://proxy.myproxy.com' ,
668
668
},
@@ -706,7 +706,7 @@ const cluster1 = new eks.Cluster(this, 'MyCluster', {
706
706
kubectlLayer: layer ,
707
707
vpc ,
708
708
clusterName: ' cluster-name' ,
709
- version: eks .KubernetesVersion .V1_21 ,
709
+ version: eks .KubernetesVersion .V1_22 ,
710
710
});
711
711
712
712
// or
@@ -724,7 +724,7 @@ By default, the kubectl provider is configured with 1024MiB of memory. You can u
724
724
``` ts
725
725
new eks .Cluster (this , ' MyCluster' , {
726
726
kubectlMemory: Size .gibibytes (4 ),
727
- version: eks .KubernetesVersion .V1_21 ,
727
+ version: eks .KubernetesVersion .V1_22 ,
728
728
});
729
729
730
730
// or
@@ -763,7 +763,7 @@ When you create a cluster, you can specify a `mastersRole`. The `Cluster` constr
763
763
``` ts
764
764
declare const role: iam .Role ;
765
765
new eks .Cluster (this , ' HelloEKS' , {
766
- version: eks .KubernetesVersion .V1_21 ,
766
+ version: eks .KubernetesVersion .V1_22 ,
767
767
mastersRole: role ,
768
768
});
769
769
```
@@ -791,7 +791,7 @@ You can use the `secretsEncryptionKey` to configure which key the cluster will u
791
791
const secretsKey = new kms .Key (this , ' SecretsKey' );
792
792
const cluster = new eks .Cluster (this , ' MyCluster' , {
793
793
secretsEncryptionKey: secretsKey ,
794
- version: eks .KubernetesVersion .V1_21 ,
794
+ version: eks .KubernetesVersion .V1_22 ,
795
795
});
796
796
```
797
797
@@ -801,7 +801,7 @@ You can also use a similar configuration for running a cluster built using the F
801
801
const secretsKey = new kms .Key (this , ' SecretsKey' );
802
802
const cluster = new eks .FargateCluster (this , ' MyFargateCluster' , {
803
803
secretsEncryptionKey: secretsKey ,
804
- version: eks .KubernetesVersion .V1_21 ,
804
+ version: eks .KubernetesVersion .V1_22 ,
805
805
});
806
806
```
807
807
@@ -1076,7 +1076,7 @@ when a cluster is defined:
1076
1076
1077
1077
``` ts
1078
1078
new eks .Cluster (this , ' MyCluster' , {
1079
- version: eks .KubernetesVersion .V1_21 ,
1079
+ version: eks .KubernetesVersion .V1_22 ,
1080
1080
prune: false ,
1081
1081
});
1082
1082
```
@@ -1431,7 +1431,7 @@ property. For example:
1431
1431
``` ts
1432
1432
const cluster = new eks .Cluster (this , ' Cluster' , {
1433
1433
// ...
1434
- version: eks .KubernetesVersion .V1_21 ,
1434
+ version: eks .KubernetesVersion .V1_22 ,
1435
1435
clusterLogging: [
1436
1436
eks .ClusterLoggingTypes .API ,
1437
1437
eks .ClusterLoggingTypes .AUTHENTICATOR ,
0 commit comments