fix: create flux-system namespace when using private GH repo

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-02-01 20:40:01 -05:00
1 parent 89673cd17b
commit acb86f2e35
3 files changed
+9 -7

No files matched your search

+3 -1
View File
@@ -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}}" }
+4 -4
View File
@@ -105,7 +105,7 @@ Hopefully some of this peeked your interests! If you are marching forward, now
<summary><i>Click <b>here</b> to read about using a RasPi4</i></summary>
> [!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
+2 -2
View File
@@ -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)