backups: add pbs-client auto update image

This commit is contained in:
Márcio Fernandes
2026-07-18 13:20:18 +00:00
parent c902e1096b
commit 537da19d50
7 changed files with 60 additions and 5 deletions
+2 -1
View File
@@ -27,7 +27,8 @@
"eamodio.gitlens", "eamodio.gitlens",
"shd101wyy.markdown-preview-enhanced", "shd101wyy.markdown-preview-enhanced",
"bierner.markdown-mermaid", "bierner.markdown-mermaid",
"bierner.markdown-preview-github-styles" "bierner.markdown-preview-github-styles",
"weaveworks.vscode-gitops-tools"
] ]
} }
} }
+3 -4
View File
@@ -52,8 +52,9 @@ spec:
containers: containers:
- name: pbs-client - name: pbs-client
image: oci.limbosolutions.com/public/pbs-client ### Maintained by flux - Image Update Automation
imagePullPolicy: Always image: oci.limbosolutions.com/public/pbs-client:latest # {"$imagepolicy": "git-limbosolutions-com:pbs-client"}
###
resources: resources:
limits: limits:
memory: "512Mi" memory: "512Mi"
@@ -62,8 +63,6 @@ spec:
memory: "256Mi" memory: "256Mi"
cpu: "250m" cpu: "250m"
env: env:
- name: MODE
value: shell
- name: PBS_REPOSITORY - name: PBS_REPOSITORY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
@@ -0,0 +1,13 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImagePolicy
metadata:
name: pbs-client
spec:
imageRepositoryRef:
name: pbs-client
filterTags:
pattern: '^latest$'
policy:
alphabetical: {}
digestReflectionPolicy: Always
interval: 24h
@@ -0,0 +1,7 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageRepository
metadata:
name: pbs-client
spec:
image: oci.limbosolutions.com/public/pbs-client
interval: 24h
@@ -0,0 +1,26 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageUpdateAutomation
metadata:
name: pbs-client
spec:
interval: 30m
sourceRef:
kind: GitRepository
name: chimera
namespace: flux-system
git:
checkout:
ref:
branch: main
commit:
author:
name: FluxCD
email: flux@local
messageTemplate: |
Update pbs-client image on backups.
push:
branch: main
update:
path: /deploy/backups/cronjobs
strategy: Setters
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- image-policy.yaml
- image-repo.yaml
- image-update-automation.yaml
generatorOptions:
disableNameSuffixHash: true
+1
View File
@@ -4,4 +4,5 @@ resources:
- secrets.yaml - secrets.yaml
- cronjobs/backup-borg-offsite.yaml - cronjobs/backup-borg-offsite.yaml
- cronjobs/backup-pbs.yaml - cronjobs/backup-pbs.yaml
- cronjobs/pbs-client
namespace: git-limbosolutions-com namespace: git-limbosolutions-com