Files
local-k8s/flux/clusters/k3d-develop/flux-system/install.sh
T
2022-02-17 23:36:27 +01:00

16 lines
457 B
Bash
Executable File

#!/bin/bash
export WORKDIR=$(dirname $0)
cd $WORKDIR
kubectl apply -n flux-system -f flux-components.yaml
sops exec-file local-git-secret.yaml "kubectl apply -n flux-system -f {}"
kubectl create secret -n flux-system generic age-key-secret --from-file age.agekey=../../../../local-k8s/keys/age.agekey --dry-run=client -o yaml | kubectl apply -f-
kubectl apply -n flux-system -f flux-sync.yaml
flux reconcile source git -n flux-system flux-system
cd -