GitOps everything for Efficiency Engineering
Before all please fork it into you personal account or organization.
- Flux CLI
Install by bash or download release binary from Flux site
required:
- secrets
see the cluster
README.md
, for example: clusters/staging/README.md
Create a github private token with repo permissions, copy and write it. See doc.
export GITHUB_TOKEN=<github private token>
export GITHUB_REPOSITORY_OWNER=<github org or username>
flux check --pre
flux bootstrap github \
--owner=${GITHUB_REPOSITORY_OWNER} \
--repository=<your repo name> \
--branch=main \
--path=clusters/staging # or other cluster dir.
if you repo in under personal account, you should add cli option --personal
.