diff --git a/.taskfiles/Flux/Taskfile.yaml b/.taskfiles/Flux/Taskfile.yaml index 78677151..c8946fc0 100644 --- a/.taskfiles/Flux/Taskfile.yaml +++ b/.taskfiles/Flux/Taskfile.yaml @@ -64,7 +64,9 @@ tasks: - { msg: "Flux not installed", sh: "kubectl get namespace flux-system --kubeconfig {{.KUBECONFIG_FILE}} &>/dev/null && exit 0 || exit 1" } github-deploy-key: - cmd: sops --decrypt {{.GITHUB_DEPLOY_KEY_FILE}} | kubectl apply --kubeconfig {{.KUBECONFIG_FILE}} --server-side --filename - + cmds: + - kubectl create namespace flux-system --dry-run=client -o yaml | kubectl --kubeconfig {{.KUBECONFIG_FILE}} apply --filename - + - sops --decrypt {{.GITHUB_DEPLOY_KEY_FILE}} | kubectl apply --kubeconfig {{.KUBECONFIG_FILE}} --server-side --filename - preconditions: - { msg: "Missing kubeconfig", sh: "test -f {{.KUBECONFIG_FILE}}" } - { msg: "Missing Sops Age key file", sh: "test -f {{.AGE_FILE}}" } diff --git a/README.md b/README.md index 3d342eb3..159d14c9 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Hopefully some of this peeked your interests! If you are marching forward, now Click here to read about using a RasPi4 -> [!IMPORTANT] +> [!NOTE] > 1. It is recommended to have an 8GB RasPi model. Most important is to **boot from an external SSD/NVMe** rather than an SD card. This is [supported natively](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html), however if you have an early model you may need to [update the bootloader](https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb) first. > 2. Check the [power requirements](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#power-supply) if using a PoE Hat and a SSD/NVMe dongle. @@ -244,7 +244,7 @@ You have two different options for setting up your local workstation. ### ⚡ Stage 4: Prepare your nodes for Kubernetes -> [!IMPORTANT] +> [!NOTE] > For **Talos** or **k0s** skip ahead to ⛵ [**Stage 5**](#-stage-5-install-kubernetes) #### k3s @@ -354,7 +354,7 @@ You have two different options for setting up your local workstation. 2. Install Flux and sync the cluster to the Git repository -> [!IMPORTANT] +> [!NOTE] > Run `task flux:github-deploy-key` first if using a private repository. ```sh @@ -427,7 +427,7 @@ By default this template will deploy a wildcard certificate using the Let's Encr By default Flux will periodically check your git repository for changes. In order to have Flux reconcile on `git push` you must configure Github to send `push` events to Flux. -> [!IMPORTANT] +> [!NOTE] > This will only work after you have switched over certificates to the Let's Encrypt Production servers. 1. Obtain the webhook path diff --git a/config.sample.yaml b/config.sample.yaml index 71241296..16dc92e5 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -92,7 +92,7 @@ cluster: flux: # (Required) Disable to use a different tool (e.g. kubectl, Argo, Kluctl) - enabled: true + enabled: false # (Required) Age Public Key (e.g. age1...) # 1. Generate a new key with the following command: # > task sops:age-keygen @@ -134,7 +134,7 @@ flux: cloudflare: # (Required) Disable to use a different DNS provider - enabled: true + enabled: false # (Required) Cloudflare Domain domain: "" # (Required) Cloudflare API Token (NOT API Key)