GitOps demo with Flux and Fabrikate
You can use this repo to create your kubernetes cluster.
You'll need the following binaries on your path:
- kubernetes cluster
- helm (v2.x)
- fab
- fluxctl
NOTE Currently fabrikate does not support Helm 3. Please use helm 2.16.3 (stable) instead when running fabrikate.
To add subcomponents check the fab add help:
fab add --help
e.g., to add prometheus-operator:
fab add prometheus-operator --source https://github.com/helm/charts \
--path stable/prometheus-operator --type helm --branch master
to create a custom configuration for prometheus-operator in the demo environment:
fab set --environment demo --subcomponent prometheus-operator \
fullnameOverride="prometheus-k8s"
To install the hem charts and generate the manifests:
fab install
fab generate demo
This will generate the manifests on the folder ./generated/demo/
.
This will become the folder that flux
checks for new/update manifests.