From f94bdaeade674ef058b55e257c14409bb81f0a81 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 8 Feb 2022 12:17:12 -0600 Subject: [PATCH] Try something new --- cluster/home/flux-system/gotk-sync.yaml | 2 +- readme.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cluster/home/flux-system/gotk-sync.yaml b/cluster/home/flux-system/gotk-sync.yaml index 48f4687..8843a62 100644 --- a/cluster/home/flux-system/gotk-sync.yaml +++ b/cluster/home/flux-system/gotk-sync.yaml @@ -20,7 +20,7 @@ metadata: namespace: flux-system spec: interval: 10m0s - path: ./cluster + path: ./cluster/home prune: true sourceRef: kind: GitRepository diff --git a/readme.md b/readme.md index 38b5fd8..3fc9d08 100644 --- a/readme.md +++ b/readme.md @@ -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