flux2/install
Aurel Canciu eca1f19e95
Improve installer list match for arm arches
`uname -m` will print out architecture codenames based on UTS_MACHINE
and COMPAT_UTS_MACHINE kernel defined constants. These extra values will
ensure the right version of the arm binary is installed on most Linux
systems running on ARM CPUs.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
..
README.md Fix install script
flux.sh Improve installer list match for arm arches

README.md

flux CLI Installation

Binaries for macOS and Linux AMD64 are available for download on the release page.

To install the latest release run:

curl -s https://raw.githubusercontent.com/fluxcd/flux2/main/install/flux.sh | sudo bash

The install script does the following:

  • attempts to detect your OS
  • downloads and unpacks the release tar file in a temporary directory
  • copies the flux binary to /usr/local/bin
  • removes the temporary directory

If you want to use flux as a kubectl plugin, rename the binary to kubectl-flux:

mv /usr/local/bin/flux /usr/local/bin/kubectl-flux

Build from source

Clone the repository:

git clone https://github.com/fluxcd/flux2
cd flux2

Build the flux binary (requires go >= 1.15):

make build

Run the binary:

./bin/flux -h