The idea here is to use cdk8s as an alternative to helm in resources that I'll have to manage by myself. for some more common use-cases I will also use Helm Releases making use of the Flux Helm Operator.
- yarn/npm (duh! 😝)
- Install cdk8s
npm install -g cdk8s-cli
/yarn global cdk8s-cli
😎
- imports - k8s library by cdk8s, could also be used for other imports
- cluster/charts - Output folder for the kubernetes manifests
- charts - CDK8s charts declaration, some make use of lib components.
- lib - Reusable components for other apps.
- main.ts Main file with exports for all the used Charts for our apps( Not helm charts! 😅)
npm run compile-synth
- This command runstsc
andcdk8s synth
and outputs theYAML
files into the cluster/charts folder.yarn compile-synth
For more information in how cdk8s works, please refer to the following links:
Website (under active development)