diff --git a/deploy/flux/git-repo.yaml b/deploy/flux/git-repo.yaml index d34b06d..89904d1 100644 --- a/deploy/flux/git-repo.yaml +++ b/deploy/flux/git-repo.yaml @@ -3,9 +3,9 @@ kind: GitRepository metadata: name: lms spec: - interval: 5m0s + interval: 1m0s url: ssh://git@git.limbosolutions.com:2222/marcio.fernandes/lms.git ref: - branch: main + branch: master secretRef: name: flux-repo-ssh-credentials \ No newline at end of file diff --git a/deploy/flux/kustomization.yaml b/deploy/flux/kustomization.yaml index f42eb98..074efaf 100644 --- a/deploy/flux/kustomization.yaml +++ b/deploy/flux/kustomization.yaml @@ -10,7 +10,7 @@ secretGenerator: - "identity=./.env.d/flux-repo-ssh-key" - "known_hosts=./.env.d/flux-repo-ssh-known_hosts" - "pubkey=./.env.d/flux-repo-ssh-key.pub" - - name: flux-repo-ssh-credentials + - name: flux-sops-age namespace: lyrionmusicserver files: - "age.agekey=./.env.d/age.agekey" diff --git a/ops-scripts/apply-flux.sh b/ops-scripts/apply-flux.sh new file mode 100755 index 0000000..83157e0 --- /dev/null +++ b/ops-scripts/apply-flux.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +kubectl kustomize deploy/flux | kubectl apply -f - \ No newline at end of file