Refactor ansible-apply.yaml and inventory/hosts, add ansible.cfg
This commit is contained in:
@@ -120,6 +120,9 @@ resource "kubernetes_cron_job_v1" "backup_job" {
|
||||
"find /backup -type f -name '${var.app_name}-files-*.tar.gz' -mtime +${var.retention_days} | xargs --no-run-if-empty rm",
|
||||
"/usr/local/bin/rclone --config=/etc/rclone.conf sync --progress /backup scaleway:$BUCKET_NAME/${var.app_name}-backup"
|
||||
])]
|
||||
security_context {
|
||||
allow_privilege_escalation = false
|
||||
}
|
||||
volume_mount {
|
||||
name = "backup-storage"
|
||||
mount_path = "/backup"
|
||||
|
||||
Reference in New Issue
Block a user