GitOps

The Flux Command-Line Interface documentation.

The Flux CLI is available as a binary executable for all major platforms, the binaries can be downloaded form GitHub releases page.

Installation

With Homebrew:

brew install fluxcd/tap/flux

With Bash:

curl -s https://fluxcd.io/install.sh | sudo bash

# enable Bash completions
echo ". <(flux completion bash)" >> ~/.bash_profile

Arch Linux (AUR) packages:

  • flux-bin: install the latest stable version using a pre-build binary (recommended)
  • flux-go: build the latest stable version from source code
  • flux-scm: build the latest (unstable) version from source code from our git main branch

A container image with kubectl and flux is available on DockerHub and GitHub:

  • docker.io/fluxcd/flux-cli:<version>
  • ghcr.io/fluxcd/flux-cli:<version>

Using the GitOps Toolkit APIs with Go

The GitOps Toolkit client libraries documentation.

Watching for source changes

Develop a Kubernetes controller that reacts to source changes.

Advanced debugging

Configure Go profiling for the GitOps Toolkit controllers.