50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
let _presets = (import "schemas/lib/concerns_presets.ncl").presets in
|
|
|
|
{
|
|
mariadb | default = {
|
|
name | default = "mariadb",
|
|
version | default = "12.2.2",
|
|
port | default = 3306,
|
|
mode | default = 'cluster,
|
|
data_dir | default = "/var/lib/mysql",
|
|
databases | default = [],
|
|
extra_cnf | default = "",
|
|
image | default = "mariadb:12.2.2-ubi10",
|
|
|
|
requires | default = {
|
|
storage = { size = "4Gi", persistent = true },
|
|
ports = [{ port = 3306, exposure = 'private }],
|
|
credentials = ["MARIADB_ROOT_PASSWORD"],
|
|
},
|
|
|
|
provides | default = {
|
|
service = "mariadb",
|
|
port = 3306,
|
|
databases = [],
|
|
},
|
|
|
|
operations | default = {
|
|
install = true,
|
|
update = true,
|
|
delete = true,
|
|
backup = true,
|
|
restore = true,
|
|
health = true,
|
|
restart = true,
|
|
},
|
|
|
|
live_check | default = {
|
|
strategy = 'k8s_pods,
|
|
scope = 'cp_only,
|
|
},
|
|
|
|
# ServiceConcerns default — MariaDB; database preset with custom backlog_ref.
|
|
concerns | default = _presets.database & {
|
|
backup | force = {
|
|
kind = 'pending,
|
|
reason = "BackupPolicy with database scope + dump_strategy declared at workspace level",
|
|
backlog_ref = "BACKUP-DB-MARIADB-001",
|
|
},
|
|
},
|
|
},
|
|
}
|