cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit a3e966c6ca3691d1ad00e5abcbca3466ed156d01
parent 1fe767d1793c13a4a2c068f48458b5c90bb89146
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Wed, 25 Mar 2026 22:15:48 +0100

make blog auto update on changes to the image

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>

Diffstat:
Aapps/talos_cluster/blog/image-policies.yaml | 22++++++++++++++++++++++
Mapps/talos_cluster/blog/kustomization.yaml | 1+
Mapps/talos_cluster/blog/wordpress.yaml | 2+-
3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/apps/talos_cluster/blog/image-policies.yaml b/apps/talos_cluster/blog/image-policies.yaml @@ -0,0 +1,22 @@ +apiVersion: image.toolkit.fluxcd.io/v1beta2 +kind: ImageRepository +metadata: + name: blog + namespace: flux-system +spec: + image: registry.midnightthoughts.space/mtrnord/blog + interval: 1h +--- +apiVersion: image.toolkit.fluxcd.io/v1beta2 +kind: ImagePolicy +metadata: + name: blog + namespace: flux-system +spec: + imageRepositoryRef: + name: blog + filterTags: + pattern: '^\d{8}-\d{6}$' + policy: + alphabetical: + order: asc diff --git a/apps/talos_cluster/blog/kustomization.yaml b/apps/talos_cluster/blog/kustomization.yaml @@ -6,3 +6,4 @@ resources: - mysql-cm.yaml - mysql.yaml - wordpress.yaml + - image-policies.yaml diff --git a/apps/talos_cluster/blog/wordpress.yaml b/apps/talos_cluster/blog/wordpress.yaml @@ -30,7 +30,7 @@ spec: fsGroup: 33 containers: - name: wordpress - image: registry.midnightthoughts.space/mtrnord/blog:latest + image: registry.midnightthoughts.space/mtrnord/blog:latest # {"$imagepolicy": "flux-system:blog"} env: - name: DB_HOST value: mysql-service.blog.svc.cluster.local