feat(infrastructure): update database deployment

This commit is contained in:
2025-09-24 00:01:11 +02:00
parent 3f48a44632
commit 5db6ce9c41
3 changed files with 6 additions and 3 deletions

View File

@@ -4,7 +4,8 @@ metadata:
name: grant name: grant
spec: spec:
mariaDbRef: mariaDbRef:
name: mariadb name: mariadb-repl
namespace: mariadb-operator
privileges: privileges:
- "ALL PRIVILEGES" - "ALL PRIVILEGES"
database: "app-demo-database" database: "app-demo-database"

View File

@@ -6,7 +6,8 @@ spec:
# If you want the user to be created with a different name than the resource name # If you want the user to be created with a different name than the resource name
# name: user-custom # name: user-custom
mariaDbRef: mariaDbRef:
name: mariadb name: mariadb-repl
namespace: mariadb-operator
passwordSecretKeyRef: passwordSecretKeyRef:
name: app-demo-database-secret name: app-demo-database-secret
key: password key: password

View File

@@ -4,7 +4,8 @@ metadata:
name: app-demo-database name: app-demo-database
spec: spec:
mariaDbRef: mariaDbRef:
name: mariadb name: mariadb-repl
namespace: mariadb-operator
characterSet: utf8 characterSet: utf8
collate: utf8_general_ci collate: utf8_general_ci
# Delete the resource in the database whenever the CR gets deleted. # Delete the resource in the database whenever the CR gets deleted.