Refactor ansible-apply.yaml and inventory/hosts, add ansible.cfg
This commit is contained in:
@@ -215,6 +215,9 @@ resource "kubernetes_cron_job_v1" "backup_data_cron" {
|
||||
name = "MARIADB_DATABASE"
|
||||
value = var.app_name
|
||||
}
|
||||
security_context {
|
||||
allow_privilege_escalation = false
|
||||
}
|
||||
command = ["/bin/sh", "-c"]
|
||||
args = [join(";", [
|
||||
"/usr/bin/mariadb-dump --single-transaction -h mariadb -u $MARIADB_USER -p$MARIADB_PASSWORD $MARIADB_DATABASE | gzip > /backups/${var.app_name}-sql-`date +\"%Y%m%d\"`.sql.gz",
|
||||
|
||||
Reference in New Issue
Block a user