From f6a3621f860f96f442541d34e03a2a40342e31e9 Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Mon, 12 Jun 2023 14:57:02 +0100 Subject: [PATCH] Create worker node group on `prod` for FDB Use `c6a.8xlarge` CPU optimises instanvce types in prep to run FDB on `prod`. --- deploy/infrastructure/prod/us-east-2/eks.tf | 11 +++++++++++ .../prod/us-east-2/cluster/kube-system/aws-auth.yaml | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/deploy/infrastructure/prod/us-east-2/eks.tf b/deploy/infrastructure/prod/us-east-2/eks.tf index fb0f8cc5e..7da8b7a26 100644 --- a/deploy/infrastructure/prod/us-east-2/eks.tf +++ b/deploy/infrastructure/prod/us-east-2/eks.tf @@ -152,6 +152,17 @@ module "eks" { instance_types = ["r6a.2xlarge"] subnet_ids = [data.aws_subnet.ue2c1.id, data.aws_subnet.ue2c2.id, data.aws_subnet.ue2c3.id] } + prod-ue2-c6a-8xl = { + min_size = 0 + max_size = 20 + desired_size = 1 + instance_types = ["c6a.8xlarge"] + subnet_ids = [ + data.aws_subnet.ue2a1.id, data.aws_subnet.ue2a2.id, data.aws_subnet.ue2a3.id, + data.aws_subnet.ue2b1.id, data.aws_subnet.ue2b2.id, data.aws_subnet.ue2b3.id, + 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 efbf283cb..81e66522b 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 @@ -85,6 +85,11 @@ data: - system:nodes rolearn: arn:aws:iam::407967248065:role/prod-ue2c-r6a-2xl-eks-node-group username: system:node:{{EC2PrivateDNSName}} + - groups: + - system:bootstrappers + - system:nodes + rolearn: arn:aws:iam::407967248065:role/prod-ue2-c6a-8xl-eks-node-group + username: system:node:{{EC2PrivateDNSName}} mapUsers: | - userarn: arn:aws:iam::407967248065:user/masih username: masih