From 51797bede7e54e4383ddc440fecbc245edc3a76d Mon Sep 17 00:00:00 2001 From: marcel-dempers Date: Sat, 11 Mar 2023 08:08:53 +1100 Subject: [PATCH] flux readme WIP --- kubernetes/fluxcd/README.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/kubernetes/fluxcd/README.md b/kubernetes/fluxcd/README.md index bc3490b..a35ae18 100644 --- a/kubernetes/fluxcd/README.md +++ b/kubernetes/fluxcd/README.md @@ -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.
``` -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
@@ -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
-We'll need to generate a personal access token (PAT) that can create repositories by checking all permissions under `repo`.
+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`.
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 +``` \ No newline at end of file