Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffcline committed Feb 16, 2022
1 parent 4457894 commit 1c733c8
Showing 1 changed file with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

---
title: "Getting Started with Karpenter on AWS"
linkTitle: "Getting Started"
title: "Getting Started with Karpenter on AWS with eksctl"
linkTitle: "Getting Started with eksctl"
weight: 10
---

Expand Down Expand Up @@ -147,18 +148,10 @@ Before the chart can be installed the repo needs to be added to Helm, run the fo
```bash
helm repo add karpenter https://charts.karpenter.sh/
helm repo update
```

Install the chart passing in the cluster details and the Karpenter role ARN.

```bash
helm upgrade --install --namespace karpenter --create-namespace \
karpenter karpenter/karpenter \
--version {{< param "latest_release_version" >}} \
--set serviceAccount.annotations."eks\.amazonaws\.com/role-arn"=${KARPENTER_IAM_ROLE_ARN} \
--set clusterName=${CLUSTER_NAME} \
--set clusterEndpoint=${CLUSTER_ENDPOINT} \
--set aws.defaultInstanceProfile=KarpenterNodeInstanceProfile-${CLUSTER_NAME} \
helm upgrade --install karpenter karpenter/karpenter --namespace karpenter \
--create-namespace --set serviceAccount.create=false --version {{< param "latest_release_version" >}} \
--set controller.clusterName=${CLUSTER_NAME} \
--set controller.clusterEndpoint=$(aws eks describe-cluster --name ${CLUSTER_NAME} --query "cluster.endpoint" --output json) \
--wait # for the defaulting webhook to install before creating a Provisioner
```

Expand Down Expand Up @@ -205,6 +198,7 @@ spec:
karpenter.sh/discovery: ${CLUSTER_NAME}
securityGroupSelector:
karpenter.sh/discovery: ${CLUSTER_NAME}
instanceProfile: KarpenterNodeInstanceProfile-${CLUSTER_NAME}
ttlSecondsAfterEmpty: 30
EOF
```
Expand Down Expand Up @@ -283,6 +277,8 @@ aws ec2 describe-launch-templates \
eksctl delete cluster --name "${CLUSTER_NAME}"
```

---

## Next Steps:

- [Install Grafana dashboards]({{ ref .. "next-steps-grafana" }}) to monitor Karpenter

0 comments on commit 1c733c8

Please sign in to comment.