flux: cd using flux

This commit is contained in:
Márcio Fernandes
2026-06-06 00:44:48 +00:00
parent ff2a75fdd0
commit 32a5849d3d
10 changed files with 72 additions and 103 deletions
+2
View File
@@ -0,0 +1,2 @@
**
!.gitignore
+12
View File
@@ -0,0 +1,12 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: app
spec:
interval: 1m
sourceRef:
kind: GitRepository
name: lms
path: deploy/app
prune: true
+11
View File
@@ -0,0 +1,11 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: mosquitto
spec:
interval: 1m0s
url: ssh://git@git.limbosolutions.com:2222/marcio.fernandes/mosquitto.git
ref:
branch: master
secretRef:
name: flux-repo-ssh-credentials
+18
View File
@@ -0,0 +1,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- git-repo.yaml
- app-sync.yaml
secretGenerator:
- name: flux-repo-ssh-credentials
namespace: lyrionmusicserver
files:
- "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-sops-age
namespace: lyrionmusicserver
files:
- "age.agekey=./.env.d/age.agekey"
generatorOptions:
disableNameSuffixHash: true