fix: create flux-system namespace when using private GH repo
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
3 files changed
+9
-7
No files matched your search
@@ -64,7 +64,9 @@ tasks:
|
|||||||
- { msg: "Flux not installed", sh: "kubectl get namespace flux-system --kubeconfig {{.KUBECONFIG_FILE}} &>/dev/null && exit 0 || exit 1" }
|
- { msg: "Flux not installed", sh: "kubectl get namespace flux-system --kubeconfig {{.KUBECONFIG_FILE}} &>/dev/null && exit 0 || exit 1" }
|
||||||
|
|
||||||
github-deploy-key:
|
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:
|
preconditions:
|
||||||
- { msg: "Missing kubeconfig", sh: "test -f {{.KUBECONFIG_FILE}}" }
|
- { msg: "Missing kubeconfig", sh: "test -f {{.KUBECONFIG_FILE}}" }
|
||||||
- { msg: "Missing Sops Age key file", sh: "test -f {{.AGE_FILE}}" }
|
- { msg: "Missing Sops Age key file", sh: "test -f {{.AGE_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>
|
<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.
|
> 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.
|
> 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
|
### ⚡ Stage 4: Prepare your nodes for Kubernetes
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!NOTE]
|
||||||
> For **Talos** or **k0s** skip ahead to ⛵ [**Stage 5**](#-stage-5-install-kubernetes)
|
> For **Talos** or **k0s** skip ahead to ⛵ [**Stage 5**](#-stage-5-install-kubernetes)
|
||||||
|
|
||||||
#### k3s
|
#### 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
|
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.
|
> Run `task flux:github-deploy-key` first if using a private repository.
|
||||||
|
|
||||||
```sh
|
```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.
|
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.
|
> This will only work after you have switched over certificates to the Let's Encrypt Production servers.
|
||||||
|
|
||||||
1. Obtain the webhook path
|
1. Obtain the webhook path
|
||||||
|
|||||||
+2
-2
@@ -92,7 +92,7 @@ cluster:
|
|||||||
|
|
||||||
flux:
|
flux:
|
||||||
# (Required) Disable to use a different tool (e.g. kubectl, Argo, Kluctl)
|
# (Required) Disable to use a different tool (e.g. kubectl, Argo, Kluctl)
|
||||||
enabled: true
|
enabled: false
|
||||||
# (Required) Age Public Key (e.g. age1...)
|
# (Required) Age Public Key (e.g. age1...)
|
||||||
# 1. Generate a new key with the following command:
|
# 1. Generate a new key with the following command:
|
||||||
# > task sops:age-keygen
|
# > task sops:age-keygen
|
||||||
@@ -134,7 +134,7 @@ flux:
|
|||||||
|
|
||||||
cloudflare:
|
cloudflare:
|
||||||
# (Required) Disable to use a different DNS provider
|
# (Required) Disable to use a different DNS provider
|
||||||
enabled: true
|
enabled: false
|
||||||
# (Required) Cloudflare Domain
|
# (Required) Cloudflare Domain
|
||||||
domain: ""
|
domain: ""
|
||||||
# (Required) Cloudflare API Token (NOT API Key)
|
# (Required) Cloudflare API Token (NOT API Key)
|
||||||
|
|||||||
Reference in new issue
Block a user