Skip to content

Commit

Permalink
chore(karpenter): clean script (#9840)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Jul 17, 2023
1 parent 1ad4de9 commit 9876442
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The diagram illustrates the repository's architecture, which is considered overl

(The diagram here may take a moment to load. Please wait patiently.)

![Architecture](https://github.com/Hongbo-Miao/hongbomiao.com/assets/3375461/56057de2-8632-4c1a-9e3f-597cb70f5610)
![Architecture](https://github.com/Hongbo-Miao/hongbomiao.com/assets/3375461/4abe4421-b1a5-413a-b233-1356280cbc54)

## 📦 Setup

Expand Down
13 changes: 2 additions & 11 deletions karpenter/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
eksctl-install:
brew install eksctl
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
poetry install --no-root
poetry-add:
poetry add xxx
poetry-add-dev:
poetry add xxx --group=dev

poetry-run-dev:
poetry run poe dev
create-amazon-eks-cluster:
sh bin/create_amazon_eks_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ helm upgrade \
--install \
--namespace=karpenter \
--create-namespace \
--version=${KARPENTER_VERSION} \
--set=serviceAccount.annotations."eks\.amazonaws\.com/role-arn=${KARPENTER_IAM_ROLE_ARN}" \
--set=settings.aws.clusterName=${CLUSTER_NAME} \
--set=settings.aws.defaultInstanceProfile="KarpenterNodeInstanceProfile-${CLUSTER_NAME}" \
--set=settings.aws.interruptionQueueName="${CLUSTER_NAME}" \
--version="${KARPENTER_VERSION}" \
--set="serviceAccount.annotations.eks.amazonaws.com/role-arn=${KARPENTER_IAM_ROLE_ARN}" \
--set="settings.aws.clusterName=${CLUSTER_NAME}" \
--set="settings.aws.defaultInstanceProfile=KarpenterNodeInstanceProfile-${CLUSTER_NAME}" \
--set="settings.aws.interruptionQueueName=${CLUSTER_NAME}" \
--set=controller.resources.requests.cpu=1 \
--set=controller.resources.requests.memory=1Gi \
--set=controller.resources.limits.cpu=1 \
Expand Down

0 comments on commit 9876442

Please sign in to comment.