Skip to content

Install the Flux CLI Tool💣

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

Fedora Note: kubectl is a prereq for flux, and flux expects it in /usr/local/bin/kubectl symlink it or copy the binary to fix errors.

Install flux.yaml to the Cluster💣

export REGISTRY1_USER='REPLACE_ME'
export REGISTRY1_TOKEN='REPLACE_ME'

In production use robot credentials, single quotes are important due to the ‘$’
export REGISTRY1_USER='robot$bigbang-onboarding-imagepull'

kubectl create ns flux-system
kubectl create secret docker-registry private-registry \
    --docker-server=registry1.dso.mil \
    --docker-username=$REGISTRY1_USER \
    --docker-password=$REGISTRY1_TOKEN \
    --namespace flux-system
kubectl apply -f https://repo1.dso.mil/big-bang/bigbang/-/raw/master/scripts/deploy/flux.yaml

k apply -f flux.yaml, is equivalent to “flux install”, but it installs a version of flux that’s been tested and gone through IronBank.

Now You Can See New CRD Objects Types Inside the Cluster💣

kubectl get crds | grep flux

Advanced Installation💣

Clone the Big Bang repo and use the awesome installation scripts directory

git clone https://repo1.dso.mil/big-bang/bigbang.git
./bigbang/scripts/install_flux.sh

NOTE install_flux.sh requires arguments to run properly, calling it will print out a friendly USAGE message with required arguments needed to complete installation.


Last update: 2023-10-02 by Christopher O'Connell