Skip to content

Commit ff59a14

Browse files
committed
fix(eks): remove aws-auth ConfigMap and update AMI types to AL2023
- Remove explicit aws-auth ConfigMap resources from Windows clusters (EKS managed node groups handle node auth automatically) - Update test matrix from AL2_x86_64 to AL2023_x86_64_STANDARD for K8s 1.35 - Update GPU AMI from AL2_x86_64_GPU to AL2023_x86_64_NVIDIA - Replace hardcoded ami_type with var.ami_type in node groups
1 parent 9a2c3c7 commit ff59a14

30 files changed

Lines changed: 32 additions & 90 deletions

File tree

generator/resources/eks_addon_test_matrix.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"k8sVersion": "1.31",
4-
"ami": "AL2_x86_64_GPU",
4+
"ami": "AL2023_x86_64_NVIDIA",
55
"terraform_dir": "terraform/eks/addon/gpu",
66
"test_dir": "./test/gpu",
77
"instanceType":"g4dn.xlarge"

generator/resources/eks_daemon_test_matrix.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[
22
{
33
"k8sVersion": "1.35",
4-
"ami": "AL2_x86_64",
4+
"ami": "AL2023_x86_64_STANDARD",
55
"instanceType":"t3.medium",
66
"arc": "amd64"
77
},
88
{
99
"k8sVersion": "1.35",
10-
"ami": "AL2_ARM_64",
10+
"ami": "AL2023_ARM_64_STANDARD",
1111
"instanceType":"m6g.large",
1212
"arc": "arm64"
1313
}

generator/test_case_generator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ var testTypeToTestConfig = map[string][]testConfig{
356356
testDir: "./test/metric_value_benchmark",
357357
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
358358
instanceType: "g4dn.xlarge",
359-
ami: "AL2_x86_64_GPU",
359+
ami: "AL2023_x86_64_NVIDIA",
360360
},
361361
{
362362
testDir: "./test/metric_value_benchmark",
@@ -386,13 +386,13 @@ var testTypeToTestConfig = map[string][]testConfig{
386386
testDir: "./test/gpu", terraformDir: "terraform/eks/daemon/gpu",
387387
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
388388
instanceType: "g4dn.xlarge",
389-
ami: "AL2_x86_64_GPU",
389+
ami: "AL2023_x86_64_NVIDIA",
390390
},
391391
{
392392
testDir: "./test/gpu_high_frequency_metrics", terraformDir: "terraform/eks/daemon/gpu",
393393
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
394394
instanceType: "g4dn.xlarge",
395-
ami: "AL2_x86_64_GPU",
395+
ami: "AL2023_x86_64_NVIDIA",
396396
},
397397
{
398398
testDir: "./test/awsneuron", terraformDir: "terraform/eks/daemon/awsneuron",

terraform/eks/addon/gpu/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ variable "k8s_version" {
2323

2424
variable "ami_type" {
2525
type = string
26-
default = "AL2_x86_64_GPU"
26+
default = "AL2023_x86_64_NVIDIA"
2727
}
2828

2929
variable "instance_type" {

terraform/eks/daemon/app_signals/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "aws_eks_node_group" "this" {
4747
min_size = 1
4848
}
4949

50-
ami_type = "AL2_x86_64"
50+
ami_type = var.ami_type
5151
capacity_type = "ON_DEMAND"
5252
disk_size = 20
5353
instance_types = ["t3.medium"]

terraform/eks/daemon/app_signals/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ variable "k8s_version" {
2828

2929
variable "ami_type" {
3030
type = string
31-
default = "AL2_x86_64"
31+
default = "AL2023_x86_64_STANDARD"
3232
}
3333

3434
variable "instance_type" {

terraform/eks/daemon/awsneuron/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "aws_eks_node_group" "this" {
4747
min_size = 1
4848
}
4949

50-
ami_type = "AL2_x86_64"
50+
ami_type = var.ami_type
5151
capacity_type = "ON_DEMAND"
5252
disk_size = 20
5353
instance_types = ["t3.medium"]

terraform/eks/daemon/awsneuron/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ variable "k8s_version" {
2828

2929
variable "ami_type" {
3030
type = string
31-
default = "AL2_x86_64"
31+
default = "AL2023_x86_64_STANDARD"
3232
}
3333

3434
variable "instance_type" {

terraform/eks/daemon/credentials/pod_identity/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ variable "k8s_version" {
1818

1919
variable "ami_type" {
2020
type = string
21-
default = "AL2_x86_64"
21+
default = "AL2023_x86_64_STANDARD"
2222
}
2323

2424
variable "instance_type" {

terraform/eks/daemon/ebs/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ variable "k8s_version" {
3333

3434
variable "ami_type" {
3535
type = string
36-
default = "AL2_x86_64"
36+
default = "AL2023_x86_64_STANDARD"
3737
}
3838

3939
variable "instance_type" {

0 commit comments

Comments
 (0)