-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#### Motivation Add and clarify documentation. #### Checklist - [ ] Tests updated - [x] Docs updated - [x] Issue linked in Title
- Loading branch information
Showing
10 changed files
with
93 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: "docker" | ||
directory: "/.github/workflows" | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
groups: | ||
aws-sdk: | ||
patterns: | ||
- "@aws-sdk/*" | ||
aws-cdk: | ||
patterns: | ||
- "@aws-cdk/*" | ||
- "aws-cdk" | ||
- "aws-cdk-lib" | ||
- "cdk8s" | ||
- "cdk8s-cli" | ||
- "cdk8s-plus-*" | ||
- "constructs" | ||
ignore: | ||
- dependency-name: "@aws-sdk/*" | ||
update-types: ["version-update:semver-patch"] | ||
- dependency-name: "@types/node" | ||
update-types: ["version-update:semver-patch"] | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: 'docker' | ||
directory: '/.github/workflows' | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: npm | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
groups: | ||
aws-sdk: | ||
patterns: | ||
- '@aws-sdk/*' | ||
aws-cdk: | ||
patterns: | ||
- '@aws-cdk/*' | ||
- 'aws-cdk' | ||
- 'aws-cdk-lib' | ||
- 'cdk8s' | ||
- 'cdk8s-cli' | ||
- 'cdk8s-plus-*' | ||
- 'constructs' | ||
ignore: | ||
- dependency-name: '@aws-sdk/*' | ||
update-types: ['version-update:semver-patch'] | ||
- dependency-name: '@types/node' | ||
update-types: ['version-update:semver-patch'] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# Karpenter | ||
# Karpenter |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# How to destroy an installation | ||
|
||
Destroying the cluster and stack is not easy, because we use some custom EKS resources to link the two together. Based on a teardown, at time of writing the following sequence should work: | ||
|
||
1. Delete the cluster: | ||
|
||
```bash | ||
aws eks delete-cluster --name=Workflows | ||
aws eks wait cluster-deleted --name=Workflows | ||
``` | ||
|
||
1. Attempt to delete the stack: | ||
|
||
```bash | ||
aws cloudformation delete-stack --stack-name=Workflows | ||
aws cloudformation wait stack-delete-complete --stack-name=Workflows | ||
``` | ||
|
||
1. Wait for the above to fail. | ||
1. Go to the [stack in AWS console](https://ap-southeast-2.console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/?filteringText=Workflows&filteringStatus=active&viewNested=true) | ||
1. Delete the stack, retaining all the resources which could not be deleted | ||
|
||
The reason we don't use the CLI for the last step is that the logical ID of the resources which could not be deleted does not seem to be the same as the ones which need to be retained. The reason is uncertain, but for now deleting in the console is safer. | ||
[How do I troubleshoot custom resource failures in AWS CloudFormation?](https://repost.aws/knowledge-center/cfn-troubleshoot-custom-resource-failures) might be relevant for future issues like this. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ Main entry point: [app](./cdk8s.ts) | |
```shell | ||
npm install | ||
``` | ||
|
||
- Login to AWS | ||
|
||
### Deploy CDK | ||
|
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