docs: Improve karpenter discovery tags example (#3097)

* docs: Improve karpenter discovery tags example

* chore: Re-add general tags declaration

---------

Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
This commit is contained in:
Koyomi Araragi
2024-07-16 18:10:55 -03:00
committed by GitHub
parent e32c29f3b7
commit 1fed91afd6

View File

@@ -101,12 +101,20 @@ module "eks" {
}
}
tags = merge(local.tags, {
# cluster_tags = merge(local.tags, {
# NOTE - only use this option if you are using "attach_cluster_primary_security_group"
# and you know what you're doing. In this case, you can remove the "node_security_group_tags" below.
# "karpenter.sh/discovery" = local.name
# })
node_security_group_tags = merge(local.tags, {
# NOTE - if creating multiple security groups with this module, only tag the
# security group that Karpenter should utilize with the following tag
# (i.e. - at most, only one security group should have this tag in your account)
"karpenter.sh/discovery" = local.name
})
tags = local.tags
}
################################################################################