2024-01-11 15:03:54 -06:00
|
|
|
# Bootstrap
|
|
|
|
|
2024-02-17 08:51:23 -06:00
|
|
|
## Talos
|
|
|
|
|
|
|
|
### Bootstrap talos cluster
|
|
|
|
|
|
|
|
```sh
|
|
|
|
omnictl cluster template sync -f ./template.yaml --omniconfig ./omniconfig.yaml
|
|
|
|
```
|
|
|
|
|
2024-01-11 15:03:54 -06:00
|
|
|
## Flux
|
|
|
|
|
|
|
|
### 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-02-17 08:51:23 -06:00
|
|
|
kubectl apply -k kubernetes/bootstrap/kps-crds/
|
2024-01-11 15:03:54 -06:00
|
|
|
```
|
|
|
|
|
|
|
|
### Kick off Flux applying this repository
|
|
|
|
|
|
|
|
```sh
|
|
|
|
kubectl apply --server-side --kustomize ./kubernetes/flux/config
|
|
|
|
```
|