Skip to content

Commit d2937d0

Browse files
authored
Merge pull request #23 from worldcoin/update-encalve-nodes-tags-to-compatible-with-autoscaler
INFRA-5193: add tags to ASG for enclave nodes
2 parents 0e66832 + ba8daf6 commit d2937d0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

node-groups-enclave.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,29 @@ resource "aws_autoscaling_group" "enclave" {
8686
value = "owned"
8787
propagate_at_launch = false
8888
}
89+
90+
tag {
91+
key = "k8s.io/cluster-autoscaler/node-template/taint/enclave"
92+
value = "NoExecute"
93+
propagate_at_launch = false
94+
}
95+
96+
tag {
97+
key = "k8s.io/cluster-autoscaler/node-template/label/intent"
98+
value = "enclave"
99+
propagate_at_launch = false
100+
}
101+
102+
tag {
103+
key = "k8s.io/cluster-autoscaler/node-template/resources/aws.ec2.nitro/nitro_enclaves"
104+
value = "1"
105+
propagate_at_launch = false
106+
}
107+
108+
tag {
109+
key = "k8s.io/cluster-autoscaler/node-template/resources/hugepages-1Gi"
110+
value = "1Gi"
111+
propagate_at_launch = false
112+
}
113+
89114
}

0 commit comments

Comments
 (0)