Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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


Generate a User Token

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token


Export User Token as Environment Variables

Code Block
$ export GITHUB_TOKEN=xxxx
$ export GITHUB_USER=johnmehan


Bootstrap

Perform pre-check to make sure we are able to install flux.

Code Block
$ flux check --pre

► checking prerequisites
✗ flux 0.19.1 <0.20.0 (new version is available, please upgrade)
✔ Kubernetes 1.21.2 >=1.19.0-0
✔ prerequisites checks passed


With Github

Code Block
flux bootstrap github --owner=$GITHUB_USER --repository=<REPO_NAME> --branch=main --path=<CLUSTER_NAME> --personal

# example
flux bootstrap github --owner=$GITHUB_USER --repository=ft --branch=main --path=local --personal bootstrap git \
  --url=ssh://git@<host>/<org>/<repository> \
  --branch=<my-branch> \
  --path=clusters/my-cluster



References

ReferencesURL
Supercharge your Kubernetes deployments with Flux v2 and GitHub - Introductionhttps://www.youtube.com/watch?v=N6UCKF7JD7k
Get Started with Fluxhttps://fluxcd.io/docs/get-started/
Install the Flux CLIhttps://fluxcd.io/docs/installation/#install-the-flux-cli
flux2-kustomize-helm-examplehttps://github.com/fluxcd/flux2-kustomize-helm-example

...