-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzookeeper_node_group.tf
46 lines (36 loc) · 1015 Bytes
/
zookeeper_node_group.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
resource "aws_eks_node_group" "zookeeper" {
cluster_name = aws_eks_cluster.main.name
node_group_name = format("%s-zookeeper", aws_eks_cluster.main.name)
node_role_arn = aws_iam_role.eks_nodes_roles.arn
subnet_ids = [
aws_subnet.private_subnet_1a.id,
aws_subnet.private_subnet_1b.id,
aws_subnet.private_subnet_1c.id
]
instance_types = var.zookeeper_instances_sizes
scaling_config {
desired_size = lookup(var.zookeeper_scale_options, "desired")
max_size = lookup(var.zookeeper_scale_options, "max")
min_size = lookup(var.zookeeper_scale_options, "min")
}
labels = {
NodeGroupType = "zookeeper"
}
tags = {
"Name" : format("%s-zookeeper", aws_eks_cluster.main.name)
"kubernetes.io/cluster/${var.cluster_name}" = "owned"
}
lifecycle {
ignore_changes = [
scaling_config[0].desired_size
]
}
depends_on = [
kubernetes_config_map.aws-auth
]
timeouts {
create = "60m"
update = "2h"
delete = "2h"
}
}