-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgraded CDK to 2.132 and added peer dependency * Fix for #944, CDK dependency is set as peer and docs updated * updating md link * Fix for karpenter failure or delete, k8s moved to 1.29 for e2e and removed flux example as it was failing to compile * fixed typo
- Loading branch information
1 parent
247aaf2
commit 899f9e3
Showing
10 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,21 +26,52 @@ Create a directory that represents you project (e.g. `my-blueprints`) and then c | |
```bash | ||
npm install -g n # may require sudo | ||
n stable # may require sudo | ||
npm install -g aws-cdk@2.131.0 # may require sudo (Ubuntu) depending on configuration | ||
cdk --version # must produce 2.131.0 | ||
npm install -g aws-cdk@2.132.0 # may require sudo (Ubuntu) depending on configuration | ||
cdk --version # must produce 2.132.0 | ||
mkdir my-blueprints | ||
cd my-blueprints | ||
cdk init app --language typescript | ||
``` | ||
|
||
## Configure and Deploy EKS Clusters | ||
Install the `eks-blueprints` NPM package via the following. | ||
## Configure Your Project | ||
|
||
Install the `eks-blueprints` NPM package (keep reading if you get an error or warning message): | ||
|
||
```bash | ||
npm i @aws-quickstart/eks-blueprints | ||
``` | ||
|
||
Replace the contents of `bin/<your-main-file>.ts` (where `your-main-file` by default is the name of the root project directory) with the following code. This code will deploy a new EKS Cluster and install the `ArgoCD` addon. | ||
CDK version of the EKS Blueprints is pinned as [`peerDependencies`](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#peerdependencies) to the version that we tested against to minimize the risk of incompatibilities and/or broken functionality. When running the install command, NPM will detect any mismatch in the version and issue an error. For example: | ||
|
||
``` | ||
npm ERR! code ERESOLVE | ||
npm ERR! ERESOLVE unable to resolve dependency tree | ||
npm ERR! | ||
npm ERR! While resolving: [email protected] | ||
npm ERR! Found: [email protected] | ||
npm ERR! node_modules/aws-cdk-lib | ||
npm ERR! aws-cdk-lib@"2.130.0" from the root project | ||
npm ERR! | ||
npm ERR! Could not resolve dependency: | ||
npm ERR! peer bundled aws-cdk-lib@"2.132.0" from @aws-quickstart/[email protected] | ||
npm ERR! node_modules/@aws-quickstart/eks-blueprint | ||
``` | ||
|
||
This message means that the version of CDK that the customer is using is different from the version of CDK used in EKS Blueprints. Locate the line `peer bundled` and check the expected version of the CDK. Make sure that in your `package.json` the version is set to the expected. In this example, `package.json` contained `"aws-cdk-lib": "2.130.0"`, while the expected version was `2.132.0`. | ||
|
||
**Note**: after the initial installation, upgrading the version of CDK to an incompatible higher/lower version will produce a warning, but will succeed. For community support (submitting GitHub issues) please make sure you have a matching version configured. | ||
|
||
Example warning: | ||
|
||
``` | ||
npm WARN | ||
npm WARN Could not resolve dependency: | ||
npm WARN peer bundled aws-cdk-lib@"2.132.0" from @aws-quickstart/[email protected] | ||
``` | ||
|
||
## Deploy EKS Clusters | ||
|
||
Replace the contents of `bin/<your-main-file>.ts` (where `your-main-file` by default is the name of the root project directory) with the following code. This code will deploy a new EKS Cluster and install a number of addons. | ||
|
||
```typescript | ||
import * as cdk from 'aws-cdk-lib'; | ||
|
@@ -51,6 +82,8 @@ const account = 'XXXXXXXXXXXXX'; | |
const region = 'us-east-2'; | ||
const version = 'auto'; | ||
|
||
blueprints.HelmAddOn.validateHelmVersions = true; // optional if you would like to check for newer versions | ||
|
||
const addOns: Array<blueprints.ClusterAddOn> = [ | ||
new blueprints.addons.ArgoCDAddOn(), | ||
new blueprints.addons.CalicoOperatorAddOn(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters