Skip to content

Flux

Work in progress

This document is a work in progress.

Install the CLI tool

brew install fluxcd/tap/flux

Install the cluster components

For full installation guide visit the Flux installation guide

Set the GITHUB_TOKEN environment variable to a personal access token you created in Github.

export GITHUB_TOKEN=47241b5a1f9cc45cc7388cf787fc6abacf99eb70

Check if you cluster is ready for Flux

flux check --pre

Install Flux into your cluster

flux bootstrap github \
  --version=v0.9.0 \
  --owner=onedr0p \
  --repository=home-cluster \
  --path=cluster \
  --personal \
  --network-policy=false

Note: When using k3s I found that the network-policy flag has to be set to false, or Flux will not work

Useful commands

Force flux to sync your repository:

flux reconcile source git flux-system

Force flux to sync a helm release:

flux reconcile helmrelease sonarr -n default

Force flux to sync a helm repository:

flux reconcile source helm ingress-nginx-charts -n flux-system