Skip to content

Commit

Permalink
Added curl command to docs to pull Karpenter cloud formation template (
Browse files Browse the repository at this point in the history
…#470)

* Add curl command to pull karpenter cloudformation from remote repository.

* Remove pwd command.

* Modify curl command to write file to temp.

* Modify temp file request to use pre-defined variable.

* Reinitialize CI verification

* Fixed line format.

* Curl command to pull karpenter cfn template

Co-authored-by: brianhammons <[email protected]>
Co-authored-by: Brian Hammons <[email protected]>
  • Loading branch information
3 people authored Jun 23, 2021
1 parent 72dfd56 commit 5fdb59e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/aws/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# AWS
This guide will provide a complete Karpenter installation for AWS. These steps are opinionated and may need to be adapted for your use case.
## Environment
Expand Down Expand Up @@ -36,9 +35,13 @@ eksctl utils associate-iam-oidc-provider \
--approve

# Creates IAM resources used by Karpenter
aws cloudformation deploy \
LATEST_KARPENTER_VERSION=$(curl \
https://api.github.com/repos/awslabs/karpenter/releases/latest | jq -r '.tag_name')
TEMPOUT=$(mktemp)
curl -fsSL https://raw.githubusercontent.com/awslabs/karpenter/"${LATEST_KARPENTER_VERSION}"/docs/aws/karpenter.cloudformation.yaml > $TEMPOUT \
&& aws cloudformation deploy \
--stack-name Karpenter-${CLUSTER_NAME} \
--template-file ./docs/aws/karpenter.cloudformation.yaml \
--template-file ${TEMPOUT} \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides ClusterName=${CLUSTER_NAME} OpenIDConnectIdentityProvider=$(aws eks describe-cluster --name ${CLUSTER_NAME} | jq -r ".cluster.identity.oidc.issuer" | cut -c9-)

Expand Down

0 comments on commit 5fdb59e

Please sign in to comment.