2024-01-11 15:03:54 -06:00
|
|
|
# Bootstrap
|
|
|
|
|
2024-05-02 06:06:02 -05:00
|
|
|
## Prerequisites
|
|
|
|
```sh
|
|
|
|
brew install helmfile
|
|
|
|
helm plugin install https://github.com/databus23/helm-diff
|
|
|
|
```
|
|
|
|
|
2024-02-17 08:51:23 -06:00
|
|
|
## Talos
|
|
|
|
|
|
|
|
### Bootstrap talos cluster
|
|
|
|
|
|
|
|
```sh
|
2024-05-08 01:39:32 -05:00
|
|
|
talosctl apply-config --nodes=10.1.1.61 --file=./kubernetes/bootstrap/talos/clusterconfig/homelab-shadowfax.yaml --insecure
|
|
|
|
talosctl bootstrap --nodes=10.1.1.61
|
2024-02-17 08:51:23 -06:00
|
|
|
```
|
2024-05-02 06:06:02 -05:00
|
|
|
## CNI & Container Proxy
|
2024-03-31 10:02:55 -05:00
|
|
|
|
2024-05-02 06:06:02 -05:00
|
|
|
### Install Cilium & Spegel
|
2024-03-31 10:02:55 -05:00
|
|
|
```sh
|
2024-09-04 13:35:14 -05:00
|
|
|
helmfile apply -f kubernetes/bootstrap/talos/apps/helmfile.yaml
|
2024-03-31 10:02:55 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
## Flux Prep
|
2024-01-11 15:03:54 -06:00
|
|
|
|
|
|
|
### Install Flux
|
|
|
|
|
|
|
|
```sh
|
|
|
|
kubectl apply --server-side --kustomize ./kubernetes/bootstrap/flux
|
|
|
|
```
|
|
|
|
|
2024-02-17 08:51:23 -06:00
|
|
|
### Apply secrets, settings, and crds.
|
2024-01-11 15:03:54 -06:00
|
|
|
|
|
|
|
_These cannot be applied with `kubectl` in the regular fashion due to be encrypted with sops_
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sops --decrypt kubernetes/bootstrap/flux/age-key.sops.yaml | kubectl apply -f -
|
|
|
|
sops --decrypt kubernetes/bootstrap/flux/git-deploy-key.sops.yaml | kubectl apply -f -
|
|
|
|
sops --decrypt kubernetes/flux/vars/cluster-secrets.sops.yaml | kubectl apply -f -
|
|
|
|
kubectl apply -f kubernetes/flux/vars/cluster-settings.yaml
|
|
|
|
```
|
|
|
|
|
2024-03-31 10:02:55 -05:00
|
|
|
## Wipe Rook Ceph
|
|
|
|
|
|
|
|
```sh
|
|
|
|
kubectl apply -f kubernetes/tools/wiperook.yaml
|
|
|
|
```
|
|
|
|
|
|
|
|
## Kick off Flux applying this repository
|
2024-01-11 15:03:54 -06:00
|
|
|
|
|
|
|
```sh
|
|
|
|
kubectl apply --server-side --kustomize ./kubernetes/flux/config
|
|
|
|
```
|