chore(helm): details of cleaning.
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
3ca389ff3c
commit
1a66daa3a2
1 changed files with 6 additions and 0 deletions
|
|
@ -19,7 +19,13 @@ spec:
|
|||
args:
|
||||
- |
|
||||
# Delete all the files older than 7 days
|
||||
echo "Cleaning NFS strorage for data older than 7 days"
|
||||
stroage=`du -sh /mnt/efs`
|
||||
find /mnt/efs -type f -mtime +7 -delete
|
||||
echo "Storage before cleaning"
|
||||
echo ${storage}
|
||||
echo "Storage after cleaning"
|
||||
du -sh /mnt/efs
|
||||
volumeMounts:
|
||||
- mountPath: /mnt/efs
|
||||
name: datadir
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue