Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.06 KB

Flux monorepo demo repository

This is a repository with an example of organizing a monorepo for multiple clusters using FluxCD tool.

The first version is described in the article here and the repository for it is located here

This is a new version that I want to update constantly.

Prerequisites

  1. Create your Kubernetes cluster (my simple example for GKE available here, kind or minikube will work too)
  2. Clone this repo
  3. Bootstrap flux v2:
kubectl apply -f ./components/flux/prod/gotk-components.yaml
  1. Apply flux resource to sync this repo and your cluster
kubectl apply -f clusters/cluster-002/sync-code/flux-system/gotk-sync.yaml
  1. Check Weave gitops

forward port

kubectl -n flux-system port-forward svc/weave-gitops 9001:9001

login on http://localhost:9001

use admin:admin

  1. Uninstall flux
flux uninstall