Skip to content

Commit

Permalink
Move double hashing node group to ue2a
Browse files Browse the repository at this point in the history
To where VPCs are
  • Loading branch information
ischasny committed Jan 23, 2023
1 parent 6597cbf commit d8ac0a7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy/infrastructure/dev/us-east-2/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ module "eks" {

eks_managed_node_groups = {
# Node group used by double hashing indexer nodes
dev-ue2b-r6a-xl = {
dev-ue2a-r6a-xl = {
min_size = 0
max_size = 3
desired_size = 1
instance_types = ["r6a.xlarge"]
subnet_ids = [data.aws_subnet.ue2b1.id]
subnet_ids = [data.aws_subnet.ue2a2.id]
}
dev-ue2-m4-xl-2 = {
min_size = 3
Expand Down
17 changes: 17 additions & 0 deletions deploy/infrastructure/dev/us-east-2/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,23 @@ data "aws_subnet" "ue2a1" {
}
}

data "aws_subnet" "ue2a2" {
vpc_id = module.vpc.vpc_id

filter {
name = "availability-zone"
values = ["us-east-2a"]
}
filter {
name = "subnet-id"
values = module.vpc.private_subnets
}
filter {
name = "cidr-block"
values = ["20.10.4.0/24"]
}
}

data "aws_subnet" "ue2b1" {
vpc_id = module.vpc.vpc_id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data:
- groups:
- system:bootstrappers
- system:nodes
rolearn: arn:aws:iam::407967248065:role/dev-ue2b-r6a-xl-eks-node-group
rolearn: arn:aws:iam::407967248065:role/dev-ue2a-r6a-xl-eks-node-group
username: system:node:{{EC2PrivateDNSName}}
- groups:
- system:bootstrappers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
- key: topology.kubernetes.io/zone
operator: In
values:
- us-east-2b
- us-east-2a
volumes:
- name: data
persistentVolumeClaim:
Expand Down

0 comments on commit d8ac0a7

Please sign in to comment.