From fa3b39addef4343848cd516a54dbaee09dff2db7 Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Thu, 8 Jun 2023 10:07:50 +0100 Subject: [PATCH] Deploy `r6a.2xl` worker node group on `prod` cluster These are the instance types that will be used by the new indexers pointed to FDB backed dhstores. Relates to: - https://github.com/ipni/storetheindex/pull/1906 --- deploy/infrastructure/prod/us-east-2/eks.tf | 21 +++++++++++++++++++ .../cluster/kube-system/aws-auth.yaml | 15 +++++++++++++ 2 files changed, 36 insertions(+) diff --git a/deploy/infrastructure/prod/us-east-2/eks.tf b/deploy/infrastructure/prod/us-east-2/eks.tf index 51cb93e88..91a03723b 100644 --- a/deploy/infrastructure/prod/us-east-2/eks.tf +++ b/deploy/infrastructure/prod/us-east-2/eks.tf @@ -131,6 +131,27 @@ module "eks" { } } } + prod-ue2a-r6a-2xl = { + min_size = 0 + max_size = 10 + desired_size = 0 + instance_types = ["r6a.2xlarge"] + subnet_ids = [data.aws_subnet.ue2a1.id,data.aws_subnet.ue2a2.id, data.aws_subnet.ue2a3.id] + } + prod-ue2b-r6a-2xl = { + min_size = 0 + max_size = 10 + desired_size = 0 + instance_types = ["r6a.2xlarge"] + subnet_ids = [data.aws_subnet.ue2b1.id,data.aws_subnet.ue2b2.id, data.aws_subnet.ue2b3.id] + } + prod-ue2c-r6a-2xl = { + min_size = 0 + max_size = 10 + desired_size = 0 + instance_types = ["r6a.2xlarge"] + subnet_ids = [data.aws_subnet.ue2c1.id,data.aws_subnet.ue2c2.id, data.aws_subnet.ue2c3.id] + } } } diff --git a/deploy/manifests/prod/us-east-2/cluster/kube-system/aws-auth.yaml b/deploy/manifests/prod/us-east-2/cluster/kube-system/aws-auth.yaml index ab946826e..6e6e06bf6 100644 --- a/deploy/manifests/prod/us-east-2/cluster/kube-system/aws-auth.yaml +++ b/deploy/manifests/prod/us-east-2/cluster/kube-system/aws-auth.yaml @@ -70,6 +70,21 @@ data: - system:nodes rolearn: arn:aws:iam::407967248065:role/prod-ue2c-r6a-xl-eks-node-group username: system:node:{{EC2PrivateDNSName}} + - groups: + - system:bootstrappers + - system:nodes + rolearn: arn:aws:iam::407967248065:role/prod-ue2a-r6a-2xl-eks-node-group + username: system:node:{{EC2PrivateDNSName}} + - groups: + - system:bootstrappers + - system:nodes + rolearn: arn:aws:iam::407967248065:role/prod-ue2a-r6b-2xl-eks-node-group + username: system:node:{{EC2PrivateDNSName}} + - groups: + - system:bootstrappers + - system:nodes + rolearn: arn:aws:iam::407967248065:role/prod-ue2a-r6c-2xl-eks-node-group + username: system:node:{{EC2PrivateDNSName}} mapUsers: | - userarn: arn:aws:iam::407967248065:user/masih username: masih