flux readme WIP

This commit is contained in:
marcel-dempers 2023-03-11 08:08:53 +11:00
parent 52738af7f4
commit 51797bede7

View File

@ -60,7 +60,7 @@ We can get this utility from the GitHub [Releases page](https://github.com/fluxc
It's also worth noting that you want to ensure you get a compatible version of flux which supports your version of Kubernetes. Checkout the [prerequisites](https://fluxcd.io/flux/installation/#prerequisites) page. </br>
```
curl -o /tmp/flux.tar.gz -LO https://github.com/fluxcd/flux2/releases/download/v0.36.0/flux_0.36.0_linux_amd64.tar.gz
curl -o /tmp/flux.tar.gz -sLO https://github.com/fluxcd/flux2/releases/download/v0.41.1/flux_0.41.1_linux_amd64.tar.gz
tar -C /tmp/ -zxvf /tmp/flux.tar.gz
mv /tmp/flux /usr/local/bin/flux
chmod +x /usr/local/bin/flux
@ -68,6 +68,12 @@ chmod +x /usr/local/bin/flux
Now we can run `flux --help` to see its installed
## Check our cluster
```
flux check --pre
```
## Documentation
As with every guide, we start with the documentation </br>
@ -75,7 +81,7 @@ The [Core Concepts](https://fluxcd.io/flux/concepts/) is a good place to start.
We begin by following the steps under the [bootstrap](https://fluxcd.io/flux/installation/#bootstrap) section for GitHub </br>
We'll need to generate a personal access token (PAT) that can create repositories by checking all permissions under `repo`. </br>
We'll need to generate a [personal access token (PAT)](https://github.com/settings/tokens/new) that can create repositories by checking all permissions under `repo`. </br>
Once we have a token, we can set it:
@ -87,8 +93,15 @@ Then we can bootstrap it using the GitHub bootstrap method
```
flux bootstrap github \
--owner=my-github-username \
--repository=my-repository \
--path=clusters/my-cluster \
--personal
--owner=marcel-dempers \
--repository=docker-development-youtube-series \
--path=kubernetes/fluxcd/clusters/dev-cluster \
--personal \
--branch fluxcd-2022
```
Check the source code that `flux bootstrap` created
```
git pull origin <branch-name>
```