Initial commit - working through the Flux D1 reference architecture@

This commit is contained in:
V
2025-11-15 17:03:21 +00:00
commit 7f8014b20b
13 changed files with 220 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageUpdateAutomation
metadata:
name: flux-infra
spec:
interval: 30m
sourceRef:
kind: GitRepository
name: flux-infra
git:
checkout:
ref:
branch: ${GIT_BRANCH}
commit:
author:
email: home-lab-fluxcd-bot@users.noreply.home.lab
name: home-lab-fluxcd-bot
messageTemplate: |
Automated image update
Files:
{{ range $filename, $_ := .Changed.FileChanges -}}
- {{ $filename }}
{{ end -}}
Objects:
{{ range $resource, $changes := .Changed.Objects -}}
- {{ $resource.Kind }} {{ $resource.Name }}
Changes:
{{- range $_, $change := $changes }}
- {{ $change.OldValue }} -> {{ $change.NewValue }}
{{ end -}}
{{ end -}}
push:
branch: ${GIT_BRANCH}
update:
path: "./components"
strategy: Setters
+10
View File
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: flux-system
resources:
- sync.yaml
- automation.yaml
labels:
- pairs:
toolkit.fluxcd.io/tenant: infra
toolkit.fluxcd.io/role: automation
+13
View File
@@ -0,0 +1,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: flux-infra-update-policies
spec:
serviceAccountName: flux-infra
interval: 12h
retryInterval: 3m
path: ./update
prune: true
sourceRef:
kind: GitRepository
name: flux-infra