Skip to content

Commit

Permalink
shorter env var names
Browse files Browse the repository at this point in the history
  • Loading branch information
svennam92 committed Nov 17, 2023
1 parent e8aacee commit 0f07784
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module "eks_blueprints_addons" {

output "environment" {
value = <<EOF
export KARPENTER_ROLE="${module.eks_blueprints_addons.karpenter.node_iam_role_name}"
export KARPENTER_ARN="${module.eks_blueprints_addons.karpenter.node_iam_role_arn}"
export KARP_ROLE="${module.eks_blueprints_addons.karpenter.node_iam_role_name}"
export KARP_ARN="${module.eks_blueprints_addons.karpenter.node_iam_role_arn}"
EOF
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ metadata:
name: default
spec:
amiFamily: AL2 # Amazon Linux 2
role: "${KARPENTER_ROLE}"
role: "${KARP_ROLE}"
subnetSelectorTerms:
- tags:
karpenter.sh/discovery: ${EKS_CLUSTER_NAME}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/autoscaling/compute/karpenter/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The only setup that we will need to do is to update our EKS IAM mappings to allo

```bash
$ eksctl create iamidentitymapping --cluster $EKS_CLUSTER_NAME \
--region $AWS_REGION --arn $KARPENTER_ARN \
--region $AWS_REGION --arn $KARP_ARN \
--group system:bootstrappers --group system:nodes \
--username system:node:{{EC2PrivateDNSName}}
```

0 comments on commit 0f07784

Please sign in to comment.