Compare commits
2 Commits
fcb4f638aa
...
cd630307e7
Author | SHA1 | Date | |
---|---|---|---|
cd630307e7
|
|||
b03e742fb8 |
@@ -9,7 +9,7 @@ immich:
|
|||||||
main:
|
main:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/immich-app/immich-server
|
repository: ghcr.io/immich-app/immich-server
|
||||||
tag: v1.132.3
|
tag: v1.135.3
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
|
@@ -219,39 +219,6 @@ snapshot:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
s3-prune:
|
|
||||||
image:
|
|
||||||
repository: d3fk/s3cmd
|
|
||||||
tag: latest@sha256:dacbd4baa0c66df934e96a9325b9e34563c2ab8e4dd0fe9fd1bd9793d53fb606
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
export MONTH_AGO=$(date -d @$(( $(date +%s) - 2592000 )) +%Y-%m-%d\ %H:%M:%S);
|
|
||||||
export TIME_RANGE="$MONTH_AGO"
|
|
||||||
echo ">> Running S3 prune for Vault snapshot repository"
|
|
||||||
echo ">> Backups prior to '$TIME_RANGE' will be removed"
|
|
||||||
echo ">> File list:"
|
|
||||||
s3cmd ls -v ${BUCKET}/cl01tl/cl01tl-vault-snapshots/
|
|
||||||
echo ">> Deleting ..."
|
|
||||||
s3cmd ls -v ${BUCKET}/cl01tl/cl01tl-vault-snapshots/ |
|
|
||||||
awk -v month_ago="$MONTH_AGO" '$1 < month_ago {print $4}' |
|
|
||||||
while read file;
|
|
||||||
do s3cmd del -v "$file";
|
|
||||||
done;
|
|
||||||
echo ">> Completed S3 prune for Vault snapshot repository"
|
|
||||||
env:
|
|
||||||
- name: BUCKET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: vault-s3cmd-config
|
|
||||||
key: BUCKET
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
existingClaim: vault-nfs-storage-backup
|
existingClaim: vault-nfs-storage-backup
|
||||||
@@ -274,11 +241,6 @@ snapshot:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
mountPropagation: None
|
mountPropagation: None
|
||||||
subPath: .s3cfg
|
subPath: .s3cfg
|
||||||
s3-prune:
|
|
||||||
- path: /root/.s3cfg
|
|
||||||
readOnly: true
|
|
||||||
mountPropagation: None
|
|
||||||
subPath: .s3cfg
|
|
||||||
unseal:
|
unseal:
|
||||||
global:
|
global:
|
||||||
fullnameOverride: vault-unseal
|
fullnameOverride: vault-unseal
|
||||||
|
Reference in New Issue
Block a user