Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.
/ cdk8s-k3s-gitops Public archive

cdk8s templating for a k3s gitops cluster powered by Flux

Notifications You must be signed in to change notification settings

rafaribe/cdk8s-k3s-gitops

Repository files navigation

cdk8s experiment

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.

Pre-requisites

  • yarn/npm (duh! 😝)
  • Install cdk8s npm install -g cdk8s-cli / yarn global cdk8s-cli 😎

Project Structure

  • 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! 😅)

Useful Commands

  • npm run compile-synth - This command runs tsc and cdk8s synth and outputs the YAML files into the cluster/charts folder.
  • yarn compile-synth

References:

For more information in how cdk8s works, please refer to the following links:

GitHub Repository

Website (under active development)

Blog Post

About

cdk8s templating for a k3s gitops cluster powered by Flux

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages