Skip to content

Commit

Permalink
examples/karpenter: make karpenter discovery tag unique by appending …
Browse files Browse the repository at this point in the history
…clustername

Reference: aws/karpenter-provider-aws#1668
  • Loading branch information
armujahid committed May 23, 2022
1 parent f1399ba commit 77d4ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module "eks_blueprints" {

# Add karpenter.sh/discovery tag so that we can use this as securityGroupSelector in karpenter provisioner
node_security_group_tags = {
"karpenter.sh/discovery" = local.cluster_name
"karpenter.sh/discovery/${local.cluster_name}" = local.cluster_name
}

# Self-managed Node Group
Expand Down
2 changes: 1 addition & 1 deletion examples/karpenter/provisioners/default_provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ spec:
subnetSelector:
Name: "${eks-vpc_name}-private*"
securityGroupSelector:
karpenter.sh/discovery: '${eks-cluster-id}'
karpenter.sh/discovery/${eks-cluster-id}: '${eks-cluster-id}'
ttlSecondsAfterEmpty: 120

0 comments on commit 77d4ced

Please sign in to comment.