chore(helm): cleaning tmp storage every 72 hrs, keeping 2d data

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-09-15 19:38:28 +02:00
parent 12956b7670
commit 5f322e6b9b
2 changed files with 3 additions and 2 deletions

View file

@ -26,7 +26,7 @@ spec:
set -x
echo "Cleaning NFS strorage for data older than 7 days"
storage=`du -sh /mnt/efs`
find /mnt/efs -type f -mtime +7 -delete
find /mnt/efs -type f -mtime +{{.Values.efsCleaner.retention}} -delete
echo "Storage before cleaning"
echo ${storage}
echo "Storage after cleaning"

View file

@ -9,6 +9,7 @@ efsCleaner:
repository: "{{ .Values.global.openReplayContainerRegistry }}/alpine"
pullPolicy: Always
tag: 3.16.1
retention: 2
pvc:
# This can be either persistentVolumeClaim or hostPath.
# In case of pvc, you'll have to provide the pvc name.
@ -81,5 +82,5 @@ fullnameOverride: "utilities-openreplay"
# 5 3 * * 1 “At 03:05 on Monday.”
# refer: https://crontab.guru/#5_3_*_*_1
cron: "5 3 * * 1"
cron: "5 3 */3 * *"