Skip to content

Commit

Permalink
fix: clarify example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
andskli committed Feb 25, 2022
1 parent 07d81e2 commit d6a58d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ the service linked role in your account allowing Karpenter to provision EC2 Spot
In your CDK project, initialize a new Karpenter construct for your EKS cluster, like this:

```typescript
const cluster = new Cluster(this, 'testCluster', {
vpc: vpc,
role: clusterRole,
version: KubernetesVersion.V1_21,
defaultCapacity: 1
});

const karpenter = new Karpenter(this, 'Karpenter', {
cluster: cluster
});
Expand Down

0 comments on commit d6a58d2

Please sign in to comment.