flux: migrate to flux cd

This commit is contained in:
Márcio Fernandes
2026-06-06 01:17:21 +00:00
parent ed6809a87a
commit 07ac6f58a9
20 changed files with 106 additions and 166 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: home-assistant
spec:
interval: 1m
sourceRef:
kind: GitRepository
name: home-assistant
path: deploy/app
prune: true
+11
View File
@@ -0,0 +1,11 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: home-assistant
spec:
interval: 1m0s
url: ssh://git@git.limbosolutions.com:2222/marcio.fernandes/homeAssistant.git
ref:
branch: master
secretRef:
name: flux-repo-ssh-credentials
+19
View File
@@ -0,0 +1,19 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: home-assistant
resources:
- git-repo.yaml
- app-sync.yaml
secretGenerator:
- name: flux-repo-ssh-credentials
namespace: home-assistant
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: home-assistant
files:
- "age.agekey=./.env.d/age.agekey"
generatorOptions:
disableNameSuffixHash: true