Try something new

This commit is contained in:
Daniel Flanagan 2022-02-08 12:17:12 -06:00
parent 4861381801
commit f94bdaeade
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,7 @@ metadata:
namespace: flux-system
spec:
interval: 10m0s
path: ./cluster
path: ./cluster/home
prune: true
sourceRef:
kind: GitRepository

View File

@ -70,16 +70,18 @@ ansible-playbook -i inventory/hosts.yml ./nuke-k3s-cluster
- `kubectl create namespace flux-system --dry-run=client -o yaml | kubectl apply -f -`
- Add the `sops-age` encryption key to the namespace
```bash
pass home-k8s-cluster | grep age-secret-key | aws '{printf $2}' | \
pass home-k8s-cluster | grep age-secret-key | awk '{printf $2}' | \
kubectl --namespace flux-system create secret generic sops-age \
--from-file=age.agekey=/dev/stdin
```
- Install Flux
```
flux bootstrap git --url=$SSH_REPO_URL --branch=master \
--path=./cluster --private-key-file=$FLUX_PRIVATE_KEY_FILE
--path=./cluster/home --private-key-file=$FLUX_PRIVATE_KEY_FILE
```
**NOTE**: If you screw something up
# To Do & Status
- Flux setup needs to be finalized