Skip to content

Commit

Permalink
feat(eks): added support for defining node taints
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmorano committed Apr 18, 2024
1 parent 4f5592f commit 56576d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tg-modules/eks/terragrunt.hcl
Expand Up @@ -256,6 +256,18 @@ module "eks_node_group_${eks_region_k}_${eks_name}_${eng_name}" {
]
%{ endif ~}
%{ if try(eng_values.node-taints, "") != "" }
kubernetes_taints = [
%{ for nt_name, nt_value in eng_values.node-taints ~}
{
key = "${nt_name}"
value = "${nt_value.value}"
effect = "${nt_value.effect}"
},
%{ endfor ~}
]
%{ endif ~}
kubernetes_labels = {
"node.kubernetes.io/role" = "${eng_name}"
}
Expand Down

0 comments on commit 56576d2

Please sign in to comment.