Skip to content

Commit 1fed91a

Browse files
docs: Improve karpenter discovery tags example (#3097)
* docs: Improve karpenter discovery tags example * chore: Re-add general tags declaration --------- Co-authored-by: Bryant Biggs <[email protected]>
1 parent e32c29f commit 1fed91a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

examples/karpenter/main.tf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,20 @@ module "eks" {
101101
}
102102
}
103103

104-
tags = merge(local.tags, {
104+
# cluster_tags = merge(local.tags, {
105+
# NOTE - only use this option if you are using "attach_cluster_primary_security_group"
106+
# and you know what you're doing. In this case, you can remove the "node_security_group_tags" below.
107+
# "karpenter.sh/discovery" = local.name
108+
# })
109+
110+
node_security_group_tags = merge(local.tags, {
105111
# NOTE - if creating multiple security groups with this module, only tag the
106112
# security group that Karpenter should utilize with the following tag
107113
# (i.e. - at most, only one security group should have this tag in your account)
108114
"karpenter.sh/discovery" = local.name
109115
})
116+
117+
tags = local.tags
110118
}
111119

112120
################################################################################

0 commit comments

Comments
 (0)