Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB committed Mar 22, 2024
1 parent ec742d0 commit 0435a13
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions castai/resource_node_configuration_eks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestAccResourceNodeConfiguration_eks(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "eks.0.imds_v1", "true"),
resource.TestCheckResourceAttr(resourceName, "eks.0.imds_hop_limit", "3"),
resource.TestCheckResourceAttr(resourceName, "eks.0.volume_kms_key_arn", "arn:aws:kms:eu-central-1:012345:key/1d989ee1-59cd-4238-8018-79bae29d1109"),
resource.TestCheckResourceAttr(resourceName, "eks.0.target_group.#", "1"),
resource.TestCheckResourceAttr(resourceName, "aks.#", "0"),
resource.TestCheckResourceAttr(resourceName, "kops.#", "0"),
resource.TestCheckResourceAttr(resourceName, "gke.#", "0"),
Expand Down Expand Up @@ -125,6 +126,9 @@ resource "castai_node_configuration" "test" {
volume_kms_key_arn = "arn:aws:kms:eu-central-1:012345:key/1d989ee1-59cd-4238-8018-79bae29d1109"
imds_v1 = true
imds_hop_limit = 3
target_group = {
arn = aws_lb_target_group.test.arn
port = 80
}
}
Expand Down
8 changes: 8 additions & 0 deletions examples/eks/eks_cluster_autoscaler_policies/castai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ module "castai-eks-cluster" {
aws_security_group.additional.id,
]
instance_profile_arn = module.castai-eks-role-iam.instance_profile_arn
target_group = {
arn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
port = 1000
}
}

test_node_config = {
Expand All @@ -98,6 +102,10 @@ module "castai-eks-cluster" {
volume_iops = 3100
volume_throughput = 130
imds_v1 = true
target_group = {
arn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
port = 1000
}
}
}

Expand Down

0 comments on commit 0435a13

Please sign in to comment.