@@ -39,12 +39,12 @@ This example defines an Amazon EKS cluster with the following configuration:
39
39
* A Kubernetes pod with a container based on the [ paulbouwer/hello-kubernetes] ( https://github.com/paulbouwer/hello-kubernetes ) image.
40
40
41
41
``` ts
42
- import { KubectlV26Layer } from ' @aws-cdk/lambda-layer-kubectl-v26 ' ;
42
+ import { KubectlV27Layer } from ' @aws-cdk/lambda-layer-kubectl-v27 ' ;
43
43
44
44
// provisioning a cluster
45
45
const cluster = new eks .Cluster (this , ' hello-eks' , {
46
- version: eks .KubernetesVersion .V1_26 ,
47
- kubectlLayer: new KubectlV26Layer (this , ' kubectl' ),
46
+ version: eks .KubernetesVersion .V1_27 ,
47
+ kubectlLayer: new KubectlV27Layer (this , ' kubectl' ),
48
48
});
49
49
50
50
// apply a kubernetes manifest to the cluster
@@ -110,15 +110,15 @@ Creating a new cluster is done using the `Cluster` or `FargateCluster` construct
110
110
111
111
``` ts
112
112
new eks .Cluster (this , ' HelloEKS' , {
113
- version: eks .KubernetesVersion .V1_26 ,
113
+ version: eks .KubernetesVersion .V1_27 ,
114
114
});
115
115
```
116
116
117
117
You can also use ` FargateCluster ` to provision a cluster that uses only fargate workers.
118
118
119
119
``` ts
120
120
new eks .FargateCluster (this , ' HelloEKS' , {
121
- version: eks .KubernetesVersion .V1_26 ,
121
+ version: eks .KubernetesVersion .V1_27 ,
122
122
});
123
123
```
124
124
@@ -142,7 +142,7 @@ At cluster instantiation time, you can customize the number of instances and the
142
142
143
143
``` ts
144
144
new eks .Cluster (this , ' HelloEKS' , {
145
- version: eks .KubernetesVersion .V1_26 ,
145
+ version: eks .KubernetesVersion .V1_27 ,
146
146
defaultCapacity: 5 ,
147
147
defaultCapacityInstance: ec2 .InstanceType .of (ec2 .InstanceClass .M5 , ec2 .InstanceSize .SMALL ),
148
148
});
@@ -154,7 +154,7 @@ Additional customizations are available post instantiation. To apply them, set t
154
154
155
155
``` ts
156
156
const cluster = new eks .Cluster (this , ' HelloEKS' , {
157
- version: eks .KubernetesVersion .V1_26 ,
157
+ version: eks .KubernetesVersion .V1_27 ,
158
158
defaultCapacity: 0 ,
159
159
});
160
160
@@ -213,7 +213,7 @@ const eksClusterNodeGroupRole = new iam.Role(this, 'eksClusterNodeGroupRole', {
213
213
});
214
214
215
215
const cluster = new eks .Cluster (this , ' HelloEKS' , {
216
- version: eks .KubernetesVersion .V1_26 ,
216
+ version: eks .KubernetesVersion .V1_27 ,
217
217
defaultCapacity: 0 ,
218
218
});
219
219
@@ -356,7 +356,7 @@ The following code defines an Amazon EKS cluster with a default Fargate Profile
356
356
357
357
``` ts
358
358
const cluster = new eks .FargateCluster (this , ' MyCluster' , {
359
- version: eks .KubernetesVersion .V1_26 ,
359
+ version: eks .KubernetesVersion .V1_27 ,
360
360
});
361
361
```
362
362
@@ -433,7 +433,7 @@ You can also configure the cluster to use an auto-scaling group as the default c
433
433
434
434
``` ts
435
435
const cluster = new eks .Cluster (this , ' HelloEKS' , {
436
- version: eks .KubernetesVersion .V1_26 ,
436
+ version: eks .KubernetesVersion .V1_27 ,
437
437
defaultCapacityType: eks .DefaultCapacityType .EC2 ,
438
438
});
439
439
```
@@ -526,7 +526,7 @@ You can configure the [cluster endpoint access](https://docs.aws.amazon.com/eks/
526
526
527
527
``` ts
528
528
const cluster = new eks .Cluster (this , ' hello-eks' , {
529
- version: eks .KubernetesVersion .V1_26 ,
529
+ version: eks .KubernetesVersion .V1_27 ,
530
530
endpointAccess: eks .EndpointAccess .PRIVATE , // No access outside of your VPC.
531
531
});
532
532
```
@@ -588,7 +588,7 @@ You can specify the VPC of the cluster using the `vpc` and `vpcSubnets` properti
588
588
declare const vpc: ec2 .Vpc ;
589
589
590
590
new eks .Cluster (this , ' HelloEKS' , {
591
- version: eks .KubernetesVersion .V1_26 ,
591
+ version: eks .KubernetesVersion .V1_27 ,
592
592
vpc ,
593
593
vpcSubnets: [{ subnetType: ec2 .SubnetType .PRIVATE_WITH_EGRESS }],
594
594
});
@@ -635,7 +635,7 @@ You can configure the environment of the Cluster Handler functions by specifying
635
635
``` ts
636
636
declare const proxyInstanceSecurityGroup: ec2 .SecurityGroup ;
637
637
const cluster = new eks .Cluster (this , ' hello-eks' , {
638
- version: eks .KubernetesVersion .V1_26 ,
638
+ version: eks .KubernetesVersion .V1_27 ,
639
639
clusterHandlerEnvironment: {
640
640
https_proxy: ' http://proxy.myproxy.com' ,
641
641
},
@@ -706,7 +706,7 @@ You can configure the environment of this function by specifying it at cluster i
706
706
707
707
``` ts
708
708
const cluster = new eks .Cluster (this , ' hello-eks' , {
709
- version: eks .KubernetesVersion .V1_26 ,
709
+ version: eks .KubernetesVersion .V1_27 ,
710
710
kubectlEnvironment: {
711
711
' http_proxy' : ' http://proxy.myproxy.com' ,
712
712
},
@@ -726,11 +726,11 @@ Depending on which version of kubernetes you're targeting, you will need to use
726
726
the ` @aws-cdk/lambda-layer-kubectl-vXY ` packages.
727
727
728
728
``` ts
729
- import { KubectlV26Layer } from ' @aws-cdk/lambda-layer-kubectl-v26 ' ;
729
+ import { KubectlV27Layer } from ' @aws-cdk/lambda-layer-kubectl-v27 ' ;
730
730
731
731
const cluster = new eks .Cluster (this , ' hello-eks' , {
732
- version: eks .KubernetesVersion .V1_26 ,
733
- kubectlLayer: new KubectlV26Layer (this , ' kubectl' ),
732
+ version: eks .KubernetesVersion .V1_27 ,
733
+ kubectlLayer: new KubectlV27Layer (this , ' kubectl' ),
734
734
});
735
735
```
736
736
@@ -765,7 +765,7 @@ const cluster1 = new eks.Cluster(this, 'MyCluster', {
765
765
kubectlLayer: layer ,
766
766
vpc ,
767
767
clusterName: ' cluster-name' ,
768
- version: eks .KubernetesVersion .V1_26 ,
768
+ version: eks .KubernetesVersion .V1_27 ,
769
769
});
770
770
771
771
// or
@@ -783,7 +783,7 @@ By default, the kubectl provider is configured with 1024MiB of memory. You can u
783
783
``` ts
784
784
new eks .Cluster (this , ' MyCluster' , {
785
785
kubectlMemory: Size .gibibytes (4 ),
786
- version: eks .KubernetesVersion .V1_26 ,
786
+ version: eks .KubernetesVersion .V1_27 ,
787
787
});
788
788
789
789
// or
@@ -822,7 +822,7 @@ When you create a cluster, you can specify a `mastersRole`. The `Cluster` constr
822
822
``` ts
823
823
declare const role: iam .Role ;
824
824
new eks .Cluster (this , ' HelloEKS' , {
825
- version: eks .KubernetesVersion .V1_26 ,
825
+ version: eks .KubernetesVersion .V1_27 ,
826
826
mastersRole: role ,
827
827
});
828
828
```
@@ -872,7 +872,7 @@ You can use the `secretsEncryptionKey` to configure which key the cluster will u
872
872
const secretsKey = new kms .Key (this , ' SecretsKey' );
873
873
const cluster = new eks .Cluster (this , ' MyCluster' , {
874
874
secretsEncryptionKey: secretsKey ,
875
- version: eks .KubernetesVersion .V1_26 ,
875
+ version: eks .KubernetesVersion .V1_27 ,
876
876
});
877
877
```
878
878
@@ -882,7 +882,7 @@ You can also use a similar configuration for running a cluster built using the F
882
882
const secretsKey = new kms .Key (this , ' SecretsKey' );
883
883
const cluster = new eks .FargateCluster (this , ' MyFargateCluster' , {
884
884
secretsEncryptionKey: secretsKey ,
885
- version: eks .KubernetesVersion .V1_26 ,
885
+ version: eks .KubernetesVersion .V1_27 ,
886
886
});
887
887
```
888
888
@@ -1172,7 +1172,7 @@ when a cluster is defined:
1172
1172
1173
1173
``` ts
1174
1174
new eks .Cluster (this , ' MyCluster' , {
1175
- version: eks .KubernetesVersion .V1_26 ,
1175
+ version: eks .KubernetesVersion .V1_27 ,
1176
1176
prune: false ,
1177
1177
});
1178
1178
```
@@ -1559,7 +1559,7 @@ property. For example:
1559
1559
``` ts
1560
1560
const cluster = new eks .Cluster (this , ' Cluster' , {
1561
1561
// ...
1562
- version: eks .KubernetesVersion .V1_26 ,
1562
+ version: eks .KubernetesVersion .V1_27 ,
1563
1563
clusterLogging: [
1564
1564
eks .ClusterLoggingTypes .API ,
1565
1565
eks .ClusterLoggingTypes .AUTHENTICATOR ,
0 commit comments